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.
If using tomcat7 on windows, you can do the following:
ReplyDelete/bin>startup jpda
The startup.bat file and catalina.bat files have defaults for jpda