Windows: under tomcatHome/bin create a file called startup-debug.bat or startup.bat and add below: set JPDA_ADDRESS=8000 set JPDA_TRANSPORT=dt_socket catalina.bat jpda start UNIX: export JPDA_ADDRESS=8000 export JPDA_TRANSPORT=dt_socket catalina.sh jpda start Run the bat/sh file you just modified. Connect at port 8000 for debug..
To configure remote debugging when windows as setup as a service you edit your tomcat configuration and add these startup parameters:
C:\tomcat\bin> tomcat5w //ES//Tomcat5
-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
No comments:
Post a Comment