12/05/04: Tomcat and Netbeans

Good day of work. I can finally debug with Tomcat and Netbeans. The procedure is poorly documented, on Debian you need to modify the file /etc/default/tomcat4like so:

CATALINA_OPTS="-Djava.awt.headless=true \
-Xdebug -Xnoagent -Djava.compiler=NONE \
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"

Restart Tomcat, in Netbeans go the menu and select Start Session then Attach session. Set an obvious breakpoint and you should be all set!

Snapshot of the Netbeans debugging dialog box
Snapshot of the Netbeans debugging dialog box

back