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.

Related Post

Starting tomcat in debug mode – Linux
Start tomcat6 (installed as a windows service) debug mode using eclipse remote debugging
Installing tomcat in ubuntu/linux
Changing default session timeout value in tomcat
Setting up j2ee developer environment in ubuntu/linux

Comments

5 Responses to “Starting tomcat 6.X in Debug Mode”

  1. Admin on May 19th, 2010 9:00 am
  2. Carlos on November 3rd, 2010 3:32 pm

    In step 2 you wrote: “C:\tomcat\bin>catalina.bat jpdat start”

    “jpdat” should be “jpda”

  3. Sumanta on December 20th, 2010 3:23 pm

    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!

  4. Amit on December 20th, 2010 3:56 pm

    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.

  5. Good One on April 1st, 2011 3:29 pm

    Good One !

Leave a Reply