Thursday, April 28, 2011

How to Remote Debug on Apache Tomcat

If you want to debug on your application on Apache Tomcat, then you might need to set the following environment variables and start Tomcat using the command below where 8000 is the port that you are going to connect from your IDE.

Windows
set JPDA_ADDRESS=8000
set JPDA_TRANSPORT=dt_socket

bin/catalina.bat jpda start

Unix
export JPDA_ADDRESS=8000
export JPDA_TRANSPORT=dt_socket

bin/catalina.sh jpda start

2 comments: