Tuesday, April 17, 2007

Debug with Eclipse and Tomcat

Add the following line to startup.bat
 
set CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
 
Eclipse
 
Add <Remote Java Application>
Host:localhost, Port 5005
 

No comments: