APIdia Launch Partner
Top Description Interfaces Classes
module jdk.jdi

Package com.sun.jdi


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. com.sun.jdi.VirtualMachine mirrors the target virtual machine and is the origin of all information provided by the JDI. A VirtualMachine is typically created by using the com.sun.jdi.VirtualMachineManager to create a connection to the target virtual machine (see the com.sun.jdi.connect package). In turn the com.sun.jdi.VirtualMachineManager is typically created by calling com.sun.jdi.Bootstrap#virtualMachineManager().

Most of the methods within this package can throw the unchecked exception com.sun.jdi.VMDisconnectedException.

Methods may be added to the interfaces in the JDI packages in future releases. Existing packages may be renamed if the JDI becomes a standard extension.

Since
1.3

Interface Summary

Modifier and TypeInterface and Description
public interface
Accessible

Provides information on the accessibility of a type or type component.

public interface
ArrayReference

Provides access to an array object and its components in the target VM.

public interface
ArrayType

Provides access to the class of an array and the type of its components in the target VM.

public interface
BooleanType

The type of all primitive boolean values accessed in the target VM.

public interface
BooleanValue

Provides access to a primitive boolean value in the target VM.

public interface
ByteType

The type of all primitive byte values accessed in the target VM.

public interface
ByteValue

Provides access to a primitive byte value in the target VM.

public interface
CharType

The type of all primitive char values accessed in the target VM.

public interface
CharValue

Provides access to a primitive char value in the target VM.

public interface
ClassLoaderReference

A class loader object from the target VM.

public interface
ClassObjectReference

An instance of java.lang.Class from the target VM.

public interface
ClassType

A mirror of a class in the target VM.

public interface
DoubleType

The type of all primitive double values accessed in the target VM.

public interface
DoubleValue

Provides access to a primitive double value in the target VM.

public interface
Field

A class or instance variable in the target VM.

public interface
FloatType

The type of all primitive float values accessed in the target VM.

public interface
FloatValue

Provides access to a primitive float value in the target VM.

public interface
IntegerType

The type of all primitive int values accessed in the target VM.

public interface
IntegerValue

Provides access to a primitive int value in the target VM.

public interface
InterfaceType

A mirror of an interface in the target VM.

public interface
LocalVariable

A local variable in the target VM.

public interface
Locatable

A mirror that has a Location.

public interface
Location

A point within the executing code of the target VM.

public interface
LongType

The type of all primitive long values accessed in the target VM.

public interface
LongValue

Provides access to a primitive long value in the target VM.

public interface
Method

A static or instance method in the target VM.

public interface
Mirror

A proxy used by a debugger to examine or manipulate some entity in another virtual machine.

public interface
ModuleReference

A module in the target VM.

public interface
MonitorInfo

Information about a monitor owned by a thread.

public interface
ObjectReference

An object that currently exists in the target VM.

public interface
PathSearchingVirtualMachine

A virtual machine which searches for classes through paths

public interface
PrimitiveType

The type associated with non-object values in a target VM.

public interface
PrimitiveValue

The value assigned to a field or variable of primitive type in a target VM.

public interface
ReferenceType

The type of an object in a target VM.

public interface
ShortType

The type of all primitive short values accessed in the target VM.

public interface
ShortValue

Provides access to a primitive short value in the target VM.

public interface
StackFrame

The state of one method invocation on a thread's call stack.

public interface
StringReference

A string object from the target VM.

public interface
ThreadGroupReference

A thread group object from the target VM.

public interface
ThreadReference

A thread object from the target VM.

public interface
Type

The mirror for a type in the target VM.

public interface
TypeComponent

An entity declared within a user defined type (class or interface).

public interface
Value

The mirror for a value in the target VM.

public interface
VirtualMachine

A virtual machine targeted for debugging.

public interface
VirtualMachineManager

A manager of connections to target virtual machines.

public interface
VoidType

The type of all primitive void values accessed in the target VM.

public interface
VoidValue

Provides access to a primitive void value in the target VM.

Class Summary

Modifier and TypeClass and Description
public class
AbsentInformationException

Thrown to indicate line number or variable information is not available.

public class
Bootstrap

Initial class that provides access to the default implementation of JDI interfaces.

public class
ClassNotLoadedException

Thrown to indicate that the requested class has not yet been loaded through the appropriate class loader.

public class
ClassNotPreparedException

Thrown to indicate that the requested operation cannot be completed because the specified class has not yet been prepared.

public class
IncompatibleThreadStateException

Thrown to indicate that the requested operation cannot be completed while the specified thread is in its current state.

public class
InconsistentDebugInfoException

Thrown to indicate that there is an inconistency in the debug information provided by the target VM.

public class
InternalException

Thrown to indicate that an unexpected internal error has occurred.

public class
InvalidCodeIndexException

Deprecated This exception is no longer thrown
Thrown to indicate that the requested operation cannot be completed because the specified code index is not valid.
public class
InvalidLineNumberException

Deprecated This exception is no longer thrown
Thrown to indicate that the requested operation cannot be completed because the specified line number is not valid.
public class
InvalidModuleException

Thrown to indicate that the requested module is invalid or became invalid after the module was unloaded.

public class
InvalidStackFrameException

Thrown to indicate that the requested operation cannot be completed because the specified stack frame is no longer valid.

public class
InvalidTypeException

Thrown to indicate a type mismatch in setting the value of a field or variable, or in specifying the return value of a method.

public class
InvocationException

Thrown to indicate an exception occurred in an invoked method within the target VM.

public class
JDIPermission

Deprecated for removal since 25. This class was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for this class.
A JDIPermission object contains a name (also referred to as a "target name") but no actions list; you either have the named permission or you don't.
public class
NativeMethodException

Thrown to indicate an operation cannot be completed because it is not valid for a native method.

public class
ObjectCollectedException

Thrown to indicate that the requested operation cannot be completed because the specified object has been garbage collected.

public class
OpaqueFrameException

Thrown to indicate an operation could not be performed on a frame.

public class
VMCannotBeModifiedException

Thrown to indicate that the operation is invalid because it would modify the VM and the VM is read-only.

public class
VMDisconnectedException

Unchecked exception thrown to indicate that the requested operation cannot be completed because there is no longer a connection to the target VM.

public class
VMMismatchException

Thrown to indicate that the requested operation cannot be completed because the mirror from one target VM is being combined with a mirror from another target VM.

public class
VMOutOfMemoryException

Thrown to indicate that the requested operation cannot be completed because the target VM has run out of memory.