Remote debugging JBoss


Configuring a Remote Debugging Configuration in Eclipse

To remotely debug a JBoss application in Eclipse, start the JBoss server in debug mode. Set the JBoss server to debug mode by setting the debug options in the bin/run batch script file. The debugging provided by JBoss is based on the Java Platform Debugger Architecture (JPDA). Set the JAVA_OPTS variable as follows:

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

The different debug parameters are:

Parameter Description
-XDebug Enables debugging
-Xnoagent Disables previous debugging agent.
-Xrunjdwp Specifies the connection mechanism, the transport address, and server and suspend values.

No comments:

Post a Comment