?
Solved

Remote debugging Jetty

Posted on 2008-10-12
2
Medium Priority
?
1,121 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 17

Accepted Solution

by:
Dejan Pažin earned 2000 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
What You Need to Know when Searching for a Webhost Provider
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month9 days, 9 hours left to enroll

762 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