Attaching a debugger to tomcat
If you want to attach a remote debugger to tomcat when running as a windows service.
1. Right click on the tomcat service icon in the applications panel.
2. Click on configure.
3. Go to java tab and add these two java options
-Xdebug
-Xrunjdwp:transport=dt_socket,address=9009,server=y,suspend=n
If tomcat is installed as a separate bundle.
1. Go to catalina.bat and set JPDA_TRANSPORT=dt_socket and set JPDA_ADDRESS=<required debugger port>
2. In startup.bat change the executable line as follows
call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%