How to make debug working for tomcat when using Eclipse
Posted on 2009-02-18
I have a webapplication using Eclipse EE edition as IDE and tomcat as server. Now I need to debug my web applications. I use sudo /etc/init.d/tomcat5.5 start to start tomcat, so that I put command JAVA_OPTS=$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5000
But when I start tomcat again, it says /etc/default/tomcat5.5: 18: -Xdebug: not found. How to correct it? In windows I put following line in catalina.bat. Then Eclipse remote debugging works.
set JAVA_OPTS=%JAVA_OPTS% -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5000
How to do it in linux?