Remember: to start Apache Tomcat in the debug mode type this (on Windows):
set JPDA_ADDRESS=8000 set JPDA_TRANSPORT=dt_socket catalina jpda runon Linux you have to set environment variables using export command.
To enable remote debugging on JBoss server type this:
set JAVA_OPTS=-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8001,suspend=n run <options>
More information on this subject can be found here:
- EclipseZone - Remote Debugging with Eclipse
- Configuring Eclipse for Remote Debugging
- JPDA's "HotSwap" Class File Replacement
Do you find this tutorial useful, interesting, fantastic or maybe boring and crappy? Please share your opinions in the comments zone.