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:
- Add breakpoint in your code.
- Add Debug Configuration and add Remote Java Application and set host and port.
- Click Debug and access your deployed application.
No comments:
Post a Comment