To enable remote debugging in JBoss EAP 5, uncomment the below in run.conf
jboss-eap-5.2.0/jboss-as/bin/run.conf
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.