Solved

Remote debugging Jetty

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to parse custom JSON to POJO java 4 56
Checkbox and ListView in Android Layout 4 56
stackato and cloud 4 72
Error in @AspectJ Based AOP with Spring 2 0
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
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 …

920 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

15 Experts available now in Live!

Get 1:1 Help Now