Tuesday, December 4, 2012

How to start JBoss in debug mode?

In order to start JBoss in debug mode, all you need to do if edit the run.conf.bat file if you are on a Windows machine and add the following debug option:

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

You may choose another port as against using port 8787 mentioned above if port 8787 is already in use on your machine.

No comments:

Post a Comment