The Java Debug Interface (JDI) is a high level Java API providing information useful for debuggers and similar systems needing access to the running state of a (usually remote) virtual machine.
JDI provides introspective access to a running virtual machine's state, Class, Array, Interface, and primitive types, and instances of those types.
JDI also provides explicit control over a virtual machine's execution. The ability to suspend and resume threads, and to set breakpoints, watchpoints, etc. Notification of exceptions, class loading, thread creation, etc. The ability to inspect a suspended thread's state, local variables, stack backtrace, etc.
JDI is the highest-layer of the Java Platform Debugger Architecture (JPDA).
This module includes a simple command-line debugger, jdb.
This section documents exceptions which apply to the entire API and are thus not documented on individual methods.
NOTE: The exceptions below may be thrown whenever the specified conditions are met but a guarantee that they are thrown only exists when a valid result cannot be returned.
com.sun. jdi. VMMismatchException Any method on a
com.that takes asun. jdi. Mirror Mirroras an parameter directly or indirectly (e.g., as a element in aList) will throwcom.if the mirrors are from different virtual machines.sun. jdi. VMMismatchException
java.lang. NullPointerException Any method which takes a
java.as an parameter will throwlang. Object java.if null is passed directly or indirectly -- unless null is explicitly mentioned as a valid parameter.lang. NullPointerException
com.sun. jdi. VMDisconnectedException Any method on
com.,sun. jdi. ObjectReference com.,sun. jdi. ReferenceType com.,sun. jdi. request. EventRequest com., orsun. jdi. StackFrame com.or which takes one of these directly or indirectly as an parameter may throwsun. jdi. VirtualMachine com.if the target VM is disconnected and thesun. jdi. VMDisconnectedException com.has been or is available to be read from thesun. jdi. event. VMDisconnectEvent com..sun. jdi. event. EventQueue
com.sun. jdi. VMOutOfMemoryException Any method on
com.,sun. jdi. ObjectReference com.,sun. jdi. ReferenceType com.,sun. jdi. request. EventRequest com., orsun. jdi. StackFrame com.or which takes one of these directly or indirectly as an parameter may throwsun. jdi. VirtualMachine com.if the target VM has run out of memory.sun. jdi. VMOutOfMemoryException
com.sun. jdi. ObjectCollectedException Any method on
com.or which directly or indirectly takessun. jdi. ObjectReference ObjectReferenceas parameter may throwcom.if the mirrored object has been garbage collected.sun. jdi. ObjectCollectedException Any method on
com.or which directly or indirectly takessun. jdi. ReferenceType ReferenceTypeas parameter may throwcom.if the mirrored type has been unloaded.sun. jdi. ObjectCollectedException
| Modifier and Type | Package and Description |
|---|---|
| exported package | com.
This is the core package of the Java Debug Interface (JDI), it defines mirrors for values, types, and the target VirtualMachine itself - as well bootstrapping facilities. |
| exported package | com.
This package defines connections between the virtual machine using the JDI and the target virtual machine. |
| exported package | com.
This package comprises the interfaces and classes used to
develop new |
| exported package | com.
This package defines JDI events and event processing. |
| exported package | com.
This package is used to request that a JDI event be sent under specified conditions. |
| internal package | |
| internal package | |
| internal package | |
| internal package |