Friday, August 1, 2008

JBoss in debug mode

You can start JBoss in debug mode. You have to edit the run.bat file to configure the debug options.
Edit the run.bat file of JBoss to use the following debug options (note the suspend=n option, this tells the server not to wait till the debugger attaches itself to the server ):

set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS%

After that port 8787 can be used for debugging.

No comments: