| Package | Description | 
|---|---|
| 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.event | This package defines JDI events and event processing. | 
| com.sun.jdi.request | This package is used to request that a JDI
 event be sent under specified conditions. | 
| Modifier and Type | Method and Description | 
|---|---|
| ThreadReference | ObjectReference. owningThread()Returns an  ThreadReferencefor the thread, if any,
 which currently owns this object's monitor. | 
| ThreadReference | MonitorInfo. thread()Returns a  ThreadReferenceobject for the thread that
 owns the monitor. | 
| ThreadReference | StackFrame. thread()Returns the thread under which this frame's method is running. | 
| Modifier and Type | Method and Description | 
|---|---|
| List<ThreadReference> | VirtualMachine. allThreads()Returns a list of the currently running threads. | 
| List<ThreadReference> | ThreadGroupReference. threads()Returns a List containing a  ThreadReferencefor each live thread
 in this thread group. | 
| List<ThreadReference> | ObjectReference. waitingThreads()Returns a List containing a  ThreadReferencefor
 each thread currently waiting for this object's monitor. | 
| Modifier and Type | Method and Description | 
|---|---|
| default Value | InterfaceType. invokeMethod(ThreadReference thread,
            Method method,
            List<? extends Value> arguments,
            int options)Invokes the specified static  Methodin the
 target VM. | 
| Value | ClassType. invokeMethod(ThreadReference thread,
            Method method,
            List<? extends Value> arguments,
            int options)Invokes the specified static  Methodin the
 target VM. | 
| Value | ObjectReference. invokeMethod(ThreadReference thread,
            Method method,
            List<? extends Value> arguments,
            int options)Invokes the specified  Methodon this object in the
 target VM. | 
| ObjectReference | ClassType. newInstance(ThreadReference thread,
           Method method,
           List<? extends Value> arguments,
           int options)Constructs a new instance of this type, using
 the given constructor  Methodin the
 target VM. | 
| Modifier and Type | Method and Description | 
|---|---|
| ThreadReference | VMStartEvent. thread()Returns the initial thread of the VM which has started. | 
| ThreadReference | ThreadStartEvent. thread()Returns the thread which has started. | 
| ThreadReference | ThreadDeathEvent. thread()Returns the thread which is terminating. | 
| ThreadReference | MonitorWaitedEvent. thread()Returns the thread in which this event has occurred. | 
| ThreadReference | MonitorWaitEvent. thread()Returns the thread in which monitor wait event has occurred. | 
| ThreadReference | MonitorContendedEnteredEvent. thread()Returns the thread in which this event has occurred. | 
| ThreadReference | MonitorContendedEnterEvent. thread()Returns the thread in which this event has occurred. | 
| ThreadReference | ClassPrepareEvent. thread()Returns the thread in which this event has occurred. | 
| ThreadReference | LocatableEvent. thread()Returns the thread in which this event has occurred. | 
| Modifier and Type | Method and Description | 
|---|---|
| ThreadReference | StepRequest. thread() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | WatchpointRequest. addThreadFilter(ThreadReference thread)Restricts the events generated by this request to those in
 the given thread. | 
| void | BreakpointRequest. addThreadFilter(ThreadReference thread)Restricts the events generated by this request to those in
 the given thread. | 
| void | MonitorWaitedRequest. addThreadFilter(ThreadReference thread)Restricts the events generated by this request to those in
 the given thread. | 
| void | MonitorWaitRequest. addThreadFilter(ThreadReference thread)Restricts the events generated by this request to those in
 the given thread. | 
| void | MonitorContendedEnteredRequest. addThreadFilter(ThreadReference thread)Restricts the events generated by this request to those in
 the given thread. | 
| void | MonitorContendedEnterRequest. addThreadFilter(ThreadReference thread)Restricts the events generated by this request to those in
 the given thread. | 
| void | MethodExitRequest. addThreadFilter(ThreadReference thread)Restricts the events generated by this request to those in
 the given thread. | 
| void | MethodEntryRequest. addThreadFilter(ThreadReference thread)Restricts the events generated by this request to those in
 the given thread. | 
| void | ExceptionRequest. addThreadFilter(ThreadReference thread)Restricts the events generated by this request to those in
 the given thread. | 
| void | ThreadDeathRequest. addThreadFilter(ThreadReference thread)Restricts the events generated by this request to those in
 the given thread. | 
| void | ThreadStartRequest. addThreadFilter(ThreadReference thread)Restricts the events generated by this request to those in
 the given thread. | 
| StepRequest | EventRequestManager. createStepRequest(ThreadReference thread,
                 int size,
                 int depth)Creates a new disabled  StepRequest. | 
 Copyright © 1999, 2025, Oracle and/or its affiliates.  All rights reserved.