Solved

Remote debugging Jetty

Posted on 2008-10-12
2
1,109 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java Options in Zimbra Server 2 50
diffSum example 4 36
web application structure 18 76
Java string replace 11 43
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…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
The viewer will learn how to implement Singleton Design Pattern in Java.

815 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

11 Experts available now in Live!

Get 1:1 Help Now