Home > Dev Stuffs > Remote debug Jetty (no mvn, no plugins)

Remote debug Jetty (no mvn, no plugins)

I was used to use Tomcat in debug mode and connect my Eclipse with Remote Java Application to debug in my environment and remote boxes. Works perfect!

But recently I have to do the same but using Jetty, and was kind of boring to find how to start Jetty in debug mode as I mentioned above.

Surfing/googling you will find plugins to start Jetty inside your Eclipse and start Jetty with Maven, but was not my desire.

So, making a not so long story short, use this line to start your Jetty:

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

And connect your Eclipse in the port 8585 in this example and be happy!

References:
Stackoverflow

  1. Kristina Petkova
    2012.August.24 at 09:23

    Thank you so much for this short and useful explanation!!!

    • Rafael
      2012.August.25 at 09:12

      Nice to be useful!

  1. 2009.July.08 at 12:47

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: