All Packages Class Hierarchy This Package Previous Next Index
Class sun.tools.debug.RemoteThread
java.lang.Object
|
+----sun.tools.debug.RemoteValue
|
+----sun.tools.debug.RemoteObject
|
+----sun.tools.debug.RemoteThread
- public class RemoteThread
- extends RemoteObject
The RemoteThread class allows access to a thread in a remote Java
interpreter.
- See Also:
- RemoteDebugger, RemoteThreadGroup
-
cont()
- Resume this thread from a breakpoint, unless it previously suspended.
-
down(int)
- Change the current stackframe to be one or more frames lower
(as in, toward the current program counter).
-
dumpStack()
- Dump the stack.
-
getCurrentFrame()
- Get the current stack frame.
-
getCurrentFrameIndex()
- Return the current stackframe index
-
getName()
- Return the name of the thread.
-
getStackVariable(String)
- Return a stack variable from the current stackframe.
-
getStackVariables()
- Return the arguments and local variable from the current stackframe.
-
getStatus()
- Return the thread status description.
-
isSuspended()
- Return whether this thread is suspended.
-
next()
- Continue execution of this thread to the next line, but don't step
into a method call.
-
resetCurrentFrameIndex()
- Reset the current stackframe
-
resume()
- Resume execution of this thread.
-
setCurrentFrameIndex(int)
- Set the current stackframe index
-
step(boolean)
- Continue execution of this thread to the next instruction or line.
-
stop()
- Stop the remote thread.
-
suspend()
- Suspend execution of this thread.
-
up(int)
- Change the current stackframe to be one or more frames higher
(as in, away from the current program counter).
getName
public String getName() throws Exception
- Return the name of the thread.
- Throws: Exception
- if a general exception occurs.
getCurrentFrameIndex
public int getCurrentFrameIndex()
- Return the current stackframe index
setCurrentFrameIndex
public void setCurrentFrameIndex(int iFrame)
- Set the current stackframe index
resetCurrentFrameIndex
public void resetCurrentFrameIndex()
- Reset the current stackframe
up
public void up(int nFrames) throws Exception
- Change the current stackframe to be one or more frames higher
(as in, away from the current program counter).
- Parameters:
- nFrames - the number of stackframes
- Throws: IllegalAccessError
- when the thread isn't suspended or waiting at a breakpoint
- Throws: ArrayIndexOutOfBoundsException
- when the requested frame is beyond the stack boundary
- Throws: Exception
- if a general exception occurs.
down
public void down(int nFrames) throws Exception
- Change the current stackframe to be one or more frames lower
(as in, toward the current program counter).
- Parameters:
- nFrames - the number of stackframes
- Throws: IllegalAccessError
- when the thread isn't suspended or waiting at a breakpoint
- Throws: ArrayIndexOutOfBoundsException
- when the requested frame is beyond the stack boundary
- Throws: Exception
- if a general exception occurs.
getStatus
public String getStatus() throws Exception
- Return the thread status description.
- Throws: Exception
- if a general exception occurs.
dumpStack
public RemoteStackFrame[] dumpStack() throws Exception
- Dump the stack.
- Throws: Exception
- if a general exception occurs.
getCurrentFrame
public RemoteStackFrame getCurrentFrame() throws Exception
- Get the current stack frame.
- Throws: IllegalAccessError
- when the thread isn't suspended or waiting at a breakpoint
- Throws: Exception
- if a general exception occurs.
suspend
public void suspend() throws Exception
- Suspend execution of this thread.
- Throws: Exception
- if a general exception occurs.
resume
public void resume() throws Exception
- Resume execution of this thread.
- Throws: Exception
- if a general exception occurs.
step
public void step(boolean skipLine) throws Exception
- Continue execution of this thread to the next instruction or line.
- Parameters:
- skipLine - true to execute to next source line, false to
next instruction.
- Throws: IllegalAccessError
- when the thread isn't suspended or waiting at a breakpoint
- Throws: Exception
- if a general exception occurs.
next
public void next() throws Exception
- Continue execution of this thread to the next line, but don't step
into a method call. If no line information is available, next()
is equivalent to step().
- Throws: IllegalAccessError
- when the thread isn't suspended or waiting at a breakpoint
- Throws: Exception
- if a general exception occurs.
isSuspended
public boolean isSuspended()
- Return whether this thread is suspended.
cont
public void cont() throws Exception
- Resume this thread from a breakpoint, unless it previously suspended.
- Throws: Exception
- if a general exception occurs.
stop
public void stop() throws Exception
- Stop the remote thread.
- Throws: Exception
- if a general exception occurs.
getStackVariable
public RemoteStackVariable getStackVariable(String name) throws Exception
- Return a stack variable from the current stackframe.
- Returns:
- the variable as a RemoteValue, or null if not found.
- Throws: Exception
- if a general exception occurs.
getStackVariables
public RemoteStackVariable[] getStackVariables() throws Exception
- Return the arguments and local variable from the current stackframe.
- Returns:
- an array of RemoteValues.
- Throws: Exception
- if a general exception occurs.
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature