Starting tomcat 6.X in Debug Mode
To start tomcat 6.x in debug mode, follow the instructions
1. Set System environment variables
b. JPDA_ADDRESS=8000 (Any other port you like)
2. Start tomcat using
catalina.bat jpda start . Make sure that you have restarted the command prompt window after setting environment variables.
C:\tomcat\bin>catalina.bat jpda start
3. Debug program from the IDE and bind to 8000 (on JPDA_ADDRESS) port.