Saturday, January 8, 2011

Start Tomcat 6.X in Debug Mode in Windows

To start tomcat in debug mode first there are two system environment variables to set

  • variable name : JPDA_TRANSPORT, variable   value = dt_socket
  • variable name :  JPDA_ADDRESS, variable  value = 8000 (any free port)


Then open command prompt with administrator privileges and change the dilatory to Tomcat bin folder. Then start tomcat using "catalina.bat jpda start command". Now tomcat will start in debug mode. You have to use port which we set on JPDA_ADDRESS in the IDE you use for debugging. For example in eclipse 

No comments:

Post a Comment