Questions tagged [jdwp]

The Java Debug Wire Protocol (JDWP) is the protocol used for communication between a debugger and the Java virtual machine (VM).

The Java Debug Wire Protocol (JDWP) is the protocol used for communication between a debugger and the Java virtual machine (VM) which it debugs.

JDWP is one layer within the Java Platform Debugger Architecture (JPDA).

The JDWP differs from many protocol specifications in that it only details format and layout, not transport.

The JDWP is designed to be simple enough for easy implementation, yet it is flexible enough for future growth.

For more information on the Java Platform Debugger Architecture.

69 questions
2
votes
1 answer

How can I spy on/capture packets from JDWP to the Android VM?

I'm working on a Java debugger that uses JDWP, talking to the Android VM. I'm most interested in going from the desktop to the Emulator, and not on the device. I know that on the device, it's a whole different matter, so that's why I want to…
user1572522
  • 569
  • 2
  • 11
  • 26
2
votes
0 answers

Debug a Java application remotely on Yarn without a deterministic port

I have already googled and known to use the following options to enable debug a remote Java application. -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044 However, my application will run in Yarn, and there may be several…
zsxwing
  • 20,270
  • 4
  • 37
  • 59
2
votes
4 answers

Enabling debugging for a Node in Weblogic Cluster

I have a Weblogic (10.3.5) AdminServer instance and two nodes running as a part of the cluster. I followed the instructions on this page and added a setting in startweblogic.cmd to enable debugging at port 4000. All is fine and I'm able to connect…
user6123723
  • 10,546
  • 18
  • 67
  • 109
2
votes
1 answer

Eclipse debugger fails to run

I am trying to run a debugger in Eclipse but if fails to run, I get the following error: FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) windows 7 jdk 7 tried to reboot I have tried…
Jenny
  • 445
  • 2
  • 6
  • 23
2
votes
3 answers

Unable to debug simple Java application in Eclipse. Cannot connect to VM. AGENT_ERROR_TRANSPORT_INIT(197)

When i try to debug a simple application in Eclipse i receive a following error: Cannot connect to VM com.sun.jdi.connect.TransportTimeoutException And console provides me with a lonely string: FATAL ERROR in native method: JDWP No transports…
1
vote
1 answer

How can I run my own java code in the JVM that I am debugging remotely with JDWP?

As a penetration tester, I have come across an open JDWP port. I can connect to it with Eclipse and browse the threads and memory, but I don't have the source code for the application. I'd like to inject my own Java code, perhaps as an Exception…
bonsaiviking
  • 5,825
  • 1
  • 20
  • 35
1
vote
1 answer

How to receive breakpoint events by jvmti, from remoting debugger?

There is a jvm in a shared vm. Other developer may remote debugging by idea, and cause hang up at breakpoints. In some reason, I need to continue the process. I've programed an agent with jvmti, tried to receive breakpoint events for clearing them.…
T. Chen
  • 41
  • 4
1
vote
1 answer

How do check if someone is connected to debug port, or is actively debugging

We have a Tomcat7 Java 11 application on which a few developers work in parallel. This has some debug ports exposed in DEV stability. Sometimes, a user might connect to the debug port and end up forgetting to close the connection, and leaves the…
Sahil Agarwal
  • 142
  • 1
  • 8
1
vote
0 answers

How to put non-blocking breakpoint in JDI (Java Debug Interface)?

When you have a BreakpointEvent or StepEvent in JDI (Java Debug Interface), what happens is that the currently executing program(debugee) is suspended until the debugger processes the breakpoint event and resumes the debugee. But if you have many…
Nfff3
  • 321
  • 8
  • 24
1
vote
1 answer

Problems running Java Remote Debugger JDWP on iMac running Mac OS X Snow Leopard 10.6.7

I am building a Spring Roo app at work, and the remote debugger works there (27" iMac with a core 2 duo), but when I try to run maven in debug mode (mvnDebug) at home, (27" iMac with a core i5, also not working on my 11" MacBook Air 1.4GHz) the…
vaxt
  • 144
  • 7
1
vote
0 answers

How to automatically exit out of jdb using python

I'm trying to run jdb via python3. test = subprocess.check_output(['jdb','-attach','localhost:1234']) But it's stuck there because it is waiting for an input. Is there a way to exit automatically?
Carol Ward
  • 699
  • 4
  • 17
1
vote
1 answer

How to disable JDWP interface on linux server?

I've seen this question on stackoverflow, but without a clear answer. How do you disable JDWP on linux server? We had a security team recommend to disable JDWP due to RCE. Ref: https://ioactive.com/hacking-java-debug-wire-protocol-or-how/ Thank you.…
Nick
  • 37
  • 1
  • 4
1
vote
0 answers

How to suspend the current JVM programmatically and wait for a debugger to connect?

My goal is to implement a small library in Java that would allow to programmatically take some actions and then suspend the current JVM until a debugger is connected to it. I imagine parts of it at least are possible, for ex. when starting a JVM in…
eugen
  • 5,856
  • 2
  • 29
  • 26
1
vote
0 answers

explanation for more than one jdwp port for android process

I am trying to debug android application using Jdb and other debuggers which use socket type of connector to connect to debuggee process. I know that we can forward jdwp port of process to local tcp port using adb jdwp and adb forward tcp:xxx…
rainyday
  • 353
  • 3
  • 17
1
vote
0 answers

How do I Iaunch remote debugger in Eclipse in a single action?

I am running a server in Maven inside Eclipse on my development machine, which means that I have to wait for the server to start up, then launch the "remote debugger" over JDWP. This is a hassle for what should be a simple debugging operation. Is…
Joshua Fox
  • 18,704
  • 23
  • 87
  • 147