module jdk.jdi
Defines the Java Debug Interface.
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.
Global ExceptionsThis section documents exceptions which apply to the entire API and are thus not documented on individual methods.
Any method on a
Mirror
that takes aMirror
as an parameter directly or indirectly (e.g., as a element in aList
) will throwVMMismatchException
if the mirrors are from different virtual machines.Any method which takes a
Object
as an parameter will throwNullPointerException
if null is passed directly or indirectly -- unless null is explicitly mentioned as a valid parameter.
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.
Any method on
ObjectReference
,ReferenceType
,EventRequest
,StackFrame
, orVirtualMachine
or which takes one of these directly or indirectly as an parameter may throwVMDisconnectedException
if the target VM is disconnected and theVMDisconnectEvent
has been or is available to be read from theEventQueue
.Any method on
ObjectReference
,ReferenceType
,EventRequest
,StackFrame
, orVirtualMachine
or which takes one of these directly or indirectly as an parameter may throwVMOutOfMemoryException
if the target VM has run out of memory.Any method on
ObjectReference
or which directly or indirectly takesObjectReference
as parameter may throwObjectCollectedException
if the mirrored object has been garbage collected.Any method on
ReferenceType
or which directly or indirectly takesReferenceType
as parameter may throwObjectCollectedException
if the mirrored type has been unloaded.
Exports
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.
This package defines connections between the virtual machine using the JDI and the target virtual machine.
This package comprises the interfaces and classes used to develop new
TransportService
implementations.
This package defines JDI events and event processing.
This package is used to request that a JDI event be sent under specified conditions.
Provides
A method of connection between a debugger and a target VM.
Uses
A method of connection between a debugger and a target VM.
A transport service for connections between a debugger and a target VM.
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Other versions.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2022, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4