Eclipse – Remote debug Jetty (no mvn, no plugins)


Past scenario

– Work with Tomcat and start in debug mode and Remote Debug with Eclipse.
– Define a port and connect with eclipse in this debug/remote port.
– Use to debug servers in other hosts/servers

Today scenario

Now, I'm using Jetty and I've try to do the same, but with no success, could anyone help-me with that?

I did not use Maven, and did not want to start Jetty inside from my Eclipse.


Windows XP
Java V. 5
Jetty V. 6.1.15

This did not help me!
These are to start inside Eclipse

Best Answer

This is what we are adding to our JBoss command line while development:

-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n

Then we launch the eclipse remote debugging and connection to this port.


To run from jar (standalone) do the following

java -Xdebug -Xrunjdwp:transport=dt_socket,address=8585,server=y,suspend=n -jar start.jar