score:38
This is what we are adding to our JBoss command line while development:
-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
Then we launch the eclipse remote debugging and connection to this port.
Update:
To run from jar (standalone) do the following
java -Xdebug -Xrunjdwp:transport=dt_socket,address=8585,server=y,suspend=n -jar start.jar
score:0
Using the JVM "agentlib" command-line parameter before "start.jar" did not work for me, but this does:
How to allow Eclipse to remotely debug #Jetty (#JPDA #agentlib:jdwp) on port 8000
You have to create a file, $JETTY_BASE/start.ini (do not change $JETTY_HOME/start.ini) and put the following two lines in it:
- --exec
- -agentlib:jdwp=transport=dt_socket,address=localhost:8000,server=y,suspend=n
score:15
If you will use mvn jetty:run one day, you have to
export MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n"
appending -Xdebug ...
doesn't works
score:18
For remote debugging you should use JPDA. There's a sort of tutorialish article about it available here.
In short, start your JVM with the argument:
-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n
and you are able to connect to the underlying JVM listening on port 8000 via the standard Eclipse debugger.
Source: stackoverflow.com
Related Query
- Remote debug Jetty (no mvn, no plugins)
- Debug with jetty server, remote server
- eclipse remote debug timeout problem
- Debug GWT application in a remote browser
- Eclipse Start Weblogic in debug Mode error : “Failed to connect to remote VM”
- How do i debug a web application running on jetty in eclipse?
- Java JVM Eclipse remote debug with a console enabled
- How to solve "Secure storage was unable to save the master password" in Eclipse CDT remote application with SSH password debug connection?
- Remote debug in Tomcat 6
- Eclipse not highlighting current line in remote debug mode
- How can I remote debug my rcp application?
- How do I debug a remote application in my eclipse
- How to terminate a remote Eclipse debug on java
- How to debug remote Glassfish web app from Eclipse?
- How to debug Groovy code via the remote Java application debugging in Eclipse
- When I debug my application I get frequently Launch error: Failed to connect to remote VM
- Eclipse cdt remote build and remote debug on different servers
- Can I do remote debug of two different projects at the same time using intellij
- Getting "Launch error: Failed to connect to remote VM. Connection timed out" when trying to debug my app on my device in android
- Failed to connect to remote VM. Connection refused. when trying to debug remote java application in Flash Builder 4.7
- Remote gradle debug on build.gradle file from Eclipse IDE
- Eclipse Debug as remote Java application break points not hit
- remote debug multiple eclipse projects at the same time
- How to debug a remote application,which does not support java plug-in?
- Failed to connect to remote VM. Connection refused. while tring to debug jar
- remote debug without source code
- Are there any Eclipse plugins to display a visual object graph in debug mode?
- Java's JDB (and Eclipse) hang when connecting to remote JVMs with many threads (i.e. transmitting thread debug information via TCPIP)
- Eclipse Remote Debug pre-launch script?
- Setup eclipse PDT to debug website residing on remote server with Xdebug
More Query from same tag
- Remove unused source code files using eclipse/ Flash builder 4.6
- not start tomcat with the option "Server modules without publishing"
- Java Eclipse Taking Command Line Arguments Continously in Running Time
- how to resolve "WARNING: Application does not specify an API level requirement"?
- how to delete all system.out.println statements of the project automatically including all multiline Sop statements
- Java EE dynamic web application development
- How do I get IntelliJ to give me a warning if I have failed to provide JavaDoc description/annotation for public fields and methods?
- Adding a library (ActionBarSherlock) to a project that uses EGit fails
- sdk manager doesnt load up but eclipse is set and everything else is fine
- Found '1.8' instead. Android requires compiler compliance level 5.0 or 6.0. Please use Android Tools > Fix Project Properties
- eclipse keep crashing with exit code 1
- Eclipse not running on start up, showing wrong password error
- Eclipse RCP: Custom console
- Attempting to get class name on Android using getClassContext()[1].getName()
- How to resolve "java.lang.UnsatisfiedLinkError: no AspriseOCR in java.library.path.."
- Java .split() Array out of bounds
- Printing the entire process of mergeSort
- How to add filter in eclipse
- how to change the default text when creating a new html file in eclipse?
- Advice moving from Eclipse to Xcode
- Add a fullstop (period) to the end of each comment line
- No sound under in IDE on Linux (OK in Jar)
- Python code behaving differently between IDLE and Eclipse
- Android Project Build Target
- Using Eclipse Dali as standalone tool
- Yotaphone 2 is not visible in Eclipse
- Working with hibernate with Intellij or Eclipse
- Eclipse hover over variable VS cout in c++
- Eclipse doesn't show Galaxy Nexus in Android Device Chooser
- Unable to import cloned projects into eclipse