Remote dubbuging with Apache Tomcat

If you are java web service developer, you know how useful remote debugging is. So I was wondering how to enable remote debugging is Apache tomcat. It is very easy indeed. You have to just set only a single environment variable and that’s it.

In Linux,

export CATALINA_OPTS=”-Xdebug -Xnoagent /

-Djava.compiler=NONE /
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=<port>”

If you want to read more on this, please read this tutorial.

Advertisements

0 Responses to “Remote dubbuging with Apache Tomcat”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s





%d bloggers like this: