Remote debugging JBoss in Eclipse
It is really hard to debug an application outdoors of an IDE. Placing up a Distant Debugging Configuration in Eclipse is definitely straightforward so that you can debug your application from within Eclipse.
To start with set the JBoss server to debug method by setting the debug options in the bin/run batch/startup script file.
The debugging furnished by JBoss is primarily based on the Java System Debugger Architecture (JPDA). Established the JAVA_OPTS variable as follows:
set JAVA_OPTS= -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,handle=8787, server=y,suspend=n %JAVA_OPTS%
The distinctive debug parameters are:
- -XDebug – Allows debugging
- -Xnoagent – Disables preceding debugging agent.
- -Xrunjdwp – Specifies the relationship system, the transport handle, and server and suspend values.
Now simply just get started the JBoss server.
Second phase is to make a Debug Configuration in Eclipse. Open Eclipse, go to Operate->Debug Configurations… and decide on Distant Java Software. Now click on New Launch Configuration.
Give a identify for the configuration, then decide on the job, depart the Connection Variety and Host(give the hostname if the JBoss server is running on a distinctive equipment) and the Port you furnished over, in this instance enter 8787.
That’s it, now your remote debugging setup is prepared! Simply click on the Debug button to get started debugging your application running on JBoss.