Starting tomcat 6.X in Debug Mode
To start tomcat 6.x in debug mode, follow the instructions
1. Set System environment variables
a. JPDA_TRANSPORT=dt_socket
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.
October 6, 2008 | Filed Under J2ee
Related Post
Comments
5 Responses to “Starting tomcat 6.X in Debug Mode”
Leave a Reply

Your post is published as a new post.
http://www.techpitcher.com/start-tomcat6-installed-as-a-windows-service-debug-mode-using-eclipse-remote-debugging.html
In step 2 you wrote: “C:\tomcat\bin>catalina.bat jpdat start”
“jpdat” should be “jpda”
Hi,
Could you please explain the step no. 3.
I’m using Eclipse 3.2 and dont figure out how will I debug it.
Thank you very much for help!
Right click on any of the java file in your project.
Go to “Debug As” option, then go to “Debug Configuration”.
You’ll get a debug configuration window. You will see “Remote Java Application” option. Right click on this and select “New”.
You’ll get connection property window. Provide the Host address and port address. You are done now. Click on Debug.
Make sure that tomcat is running in debug mode.
Good One !