Wednesday, 28 September 2011

Tomcat remote debugging from eclipse

To enable debug on tomcat, set the following line in your catalina.bat

DEBUG_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

From your eclipse, create a Run Configuration for 'Remote Java Application' on socket 8000 and restart tomcat.

1 comment:

  1. If using tomcat7 on windows, you can do the following:

    /bin>startup jpda

    The startup.bat file and catalina.bat files have defaults for jpda

    ReplyDelete