14 November 2008

Debug in Tomcat 6 plus using NetBeans 6.5

To enable remote debugging in Tomcat edit the Catalina.bat to include the following lines in the beginning of the file
set JPDA_TRANSPORT=dt_socket
set JPDA_ADDRESS=8000
set JAVA_HOME=E:\jdk6

 To start Tomcat in debug mode, please use the following command
catalina jpda start

Attaching the debugger from NetBeans is similar to that in Debugging in JBoss with Netbeans.
[Note:Remember to change the port number as required]