Solved

Remote debugging Jetty

Posted on 2008-10-12
2
1,099 Views
Last Modified: 2012-05-05
Hi,

I'm developing a web application using Jetty as my web server. How can I debug the server Jetty code for testing? I'm using eclipse. I'm open to any options, I just need to be able to step debug my project so I can see what's going on.

Thanks
0
Comment
Question by:DJ_AM_Juicebox
2 Comments
 
LVL 17

Accepted Solution

by:
Dejan Pažin earned 500 total points
ID: 22701211

You have to start the server in debug mode, and then connect to that from eclipse. To start any Java process in debug mode you add parameters to startup, e.g.:

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

Here are some more detail descriptions:

http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse
http://www.eclipsezone.com/eclipse/forums/t53459.html
0
 
LVL 20

Expert Comment

by:chaitu chaitu
ID: 22701680
when you are able to configer jetty in eclipse.when you start the server in debug mode automatically you an debug the code in eclipse.put the break points in code.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now