March 28, 2016

Remote Debugging in JBoss EAP 5

To enable remote debugging in JBoss EAP 5, uncomment the below in run.conf

jboss-eap-5.2.0/jboss-as/bin/run.conf

...
# Sample JPDA settings for remote socket debugging
JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
...

Now deploy your application and open Eclipse:

  1. Add breakpoint in your code.
  2. Add Debug Configuration and add Remote Java Application and set host and port.
  3. Click Debug and access your deployed application.

No comments: