views:

6159

answers:

2

How do you configure JBoss to debug an application in Eclipse?

+11  A: 
VonC
Not sure if adding a comment to an answer this old will get read but here goes anyway! I've used this setup to debug apps on my JBOSS server through Eclipse and it's working fine - I can set breakpoints in Eclipse and intercept requests on the server. However, when I re-build an app and hot-deploy it onto JBOSS, the new version of the app runs sucessfully but I can no longer intercept the processing through Eclipse. The breakpoints are ignored. Is this expected behaviour? Do I have to re-start JBOSS each time I want to debug a re-deployed app?
dairemac
@dairemac: it will at least be read by me;) Thank you for this feedback. I don't have the possibility to reproduce directly this specific setting, but I suspect the process monitoring the apps gets terminated during the hot-deploy, which would mean restarting the JBossDebug session.
VonC
+2  A: 

If you set up a JBoss server using the Eclipse WebTools, you can simply start the server in debug mode (debug button in the servers view). This will allow you to set breakpoints in the application that is running inside the JBoss.

Fabian Steeg
That is true, and in doubt (since I do not know if this is about remote or local debugging): +1
VonC