Method Summary |
|
public ReplyPacket | ClearAllBreakpoints() Removes all breakpoints. |
public ReplyPacket | adjustTypeLength() Adjusts lengths for all VM-specific types. |
public ReplyPacket | capabilities() Requests debuggee VM capabilities. |
public ReplyPacket | checkReply(ReplyPacket reply) Checks error code of given reply packet and throws
ReplyErrorCodeException if any error detected. |
public ReplyPacket | clearBreakpoint(int requestID) Removes breakpoint according to specified requestID. |
public ReplyPacket | clearEvent(byte eventKind, int requestID) Clear an event request for specified request ID. |
public void | closeConnection() Closes connection channel used with this VmMirror and stops reading
packets. |
final public long | createString(String value) Creates java String in target VM with the given value.
Parameters: value - The value of the string. |
public ReplyPacket | dispose() Disposes connection to debuggee VM. |
public ReplyPacket | exit(int exitCode) Exits debuggee VM process. |
final public List | getAllFields(long classID) |
final public List | getAllThreadFrames(long threadID) |
public ReplyPacket | getAllThreadID() Returns all running thread IDs. |
public long | getArrayID(String arraySignature) Gets ArrayID for specified array signature. |
public Value[] | getArrayValues(long objectID) Returns a range of array components
Parameters: objectID - The array object ID. |
public ReplyPacket | getClassBySignature(String classSignature) Gets class reference by signature.
Parameters: classSignature - class signature. |
public long | getClassID(String classSignature) Gets ClassID for specified class signature. |
final public long | getClassObjectId(long refType) Returns the class object corresponding to this type
Parameters: refType - The reference type ID. |
public String | getClassSignature(long classID) Gets class signature for specified class ID. |
public TransportWrapper | getConnection() Returns JDWP connection channel used by this VmMirror. |
public long | getFieldID(long classID, String fieldName) Returns FieldID for specified class and field name. |
public long | getFieldID(ReplyPacket request, String field) Gets FieldID from ReplyPacket. |
public ReplyPacket | getFieldsInClass(long referenceTypeID) Gets class fields by class referenceTypeID.
Parameters: referenceTypeID - class referenceTypeID. |
final public int | getFrameCount(long threadID) Returns the count of frames on this thread's stack
Parameters: threadID - The thread object ID. |
final public Value[] | getFrameValues(Frame frame) |
public long | getInterfaceID(String interfaceSignature) Gets InterfaceID for specified interface signature. |
final public long | getLineCodeIndex(long classID, long methodID, int lineNumber) Returns a line code index according to a corresponding line number in a
method's line table.
Parameters: classID - The class object ID. Parameters: methodID - The method ID. Parameters: lineNumber - A source line number. |
final public int | getLineNumber(long classID, long methodID, long codeIndex) Returns a source line number according to a corresponding line code index
in a method's line table.
Parameters: classID - The class object ID. Parameters: methodID - The method ID. Parameters: codeIndex - The line code index. |
final public ReplyPacket | getLineTable(long refType, long methodID) Returns line number information for the method, if present. |
final public List | getLocalVars(Frame frame) Returns all variables which are visible within the given frame.
Parameters: frame - The frame whose visible local variables to retrieve. |
public long | getMethodID(long classID, String methodName) Gets Method ID for specified class and method name. |
public String | getMethodName(long classID, long methodID) Returns method name for specified pair of classID and methodID. |
final public String | getMethodSignature(long classID, long methodID) Returns JNI signature of method.
Parameters: classID - The reference type ID. Parameters: methodID - The method ID. |
public ReplyPacket | getMethods(long classReferenceTypeID) Gets method reference by signature.
Parameters: classReferenceTypeID - class referenceTypeID. |
final public Value[] | getObjectReferenceValues(long objectID, long[] fieldIDs) Returns the value of one or more instance fields. |
final public long | getReferenceType(long objectID) |
final public String | getReferenceTypeSignature(long refTypeID) Returns the JNI signature of a reference type. |
final public Value[] | getReferenceTypeValues(long refTypeID, long[] fieldIDs) |
final public ReplyPacket | getReflectedType(long classObjectID) Returns the reference type reflected by this class object
Parameters: classObjectID - The class object ID. |
public int | getRequestID(ReplyPacket request) Gets RequestID from specified ReplyPacket. |
final public String | getStringValue(long objectID) Returns the characters contained in the string
Parameters: objectID - The String object ID. |
final public long | getSuperclassId(long classID) |
final public long | getThisObject(long threadID, long frameID) Returns the value of the 'this' reference for this frame
Parameters: threadID - The frame's thread ID Parameters: frameID - The frame ID. |
final public ReplyPacket | getThreadFrames(long threadID, int startIndex, int length) Returns a set of frames of a certain suspended thread
Parameters: threadID - ID of the thread whose frames to obtain Parameters: startIndex - The index of the first frame to retrieve. Parameters: length - The count of frames to retrieve (-1 means all remaining). |
final public long | getThreadGroupID(long threadID) Returns the thread group that contains a given thread
Parameters: threadID - The thread object ID. |
public String | getThreadGroupName(long groupID) |
public long | getThreadID(String threadName) Gets ThreadID for specified thread name. |
public String | getThreadName(long threadID) Returns thread name for specified threadID . |
public int | getThreadStatus(long threadID) Returns thread status for specified threadID . |
public long | getTypeID(String typeSignature, byte classTypeTag) Gets TypeID for specified type signature and type tag. |
final public List | getVariableTable(long classID, long methodID) |
final public ReplyPacket | invokeInstanceMethod(long objectID, long threadID, String methodName, Value[] args, int options) Invokes a member method of the given object.
Parameters: objectID - The object ID. Parameters: threadID - The thread ID. Parameters: methodName - The name of method for the invocation. Parameters: args - The arguments for the invocation. Parameters: options - The invocation options. |
final public ReplyPacket | invokeStaticMethod(long classID, long threadID, String methodName, Value[] args, int options) Invokes a static method of the given class.
Parameters: classID - The class type ID. Parameters: threadID - The thread ID. Parameters: methodName - The name of method for the invocation. Parameters: args - The arguments for the invocation. Parameters: options - The invocation options. |
final public boolean | isThreadSuspended(long threadID) Checks whether a given thread is suspended or not
Parameters: threadID - The thread object ID. |
public ReplyPacket | performCommand(CommandPacket command) Sends CommandPacket to debuggee VM and waits for ReplyPacket using
default timeout. |
public ReplyPacket | performCommand(CommandPacket command, long timeout) Sends CommandPacket to debuggee VM and waits for ReplyPacket using
specified timeout. |
final public void | popFrame(Frame frame) Processes JDWP PopFrames command from StackFrame command set. |
public EventPacket | receiveCertainEvent(byte eventKind) Waits for expected event kind using default timeout. |
public EventPacket | receiveEvent() Waits for EventPacket using default timeout. |
public EventPacket | receiveEvent(long timeout) Waits for EventPacket using specified timeout. |
public ReplyPacket | receiveReply(int commandId) Waits for reply for command which was sent before by 'sendCommand()'
method. |
public ReplyPacket | receiveReply(int commandId, long timeout) Waits for reply for command which was sent before by 'sendCommand()'
method. |
public ReplyPacket | resume() Resumes debuggee VM. |
public ReplyPacket | resumeThread(long threadID) |
public int | sendCommand(CommandPacket command) Sends CommandPacket to debuggee VM without waiting for the reply. |
final public void | setArrayValues(long arrayID, int firstIndex, Value[] values) Sets a range of array components. |
public ReplyPacket | setBreakpoint(byte typeTag, Breakpoint breakpoint) Sets breakpoint to given location. |
public ReplyPacket | setBreakpoint(byte typeTag, Breakpoint breakpoint, byte suspendPolicy) Sets breakpoint to given location. |
public ReplyPacket | setBreakpoint(Location location) Sets breakpoint to given location. |
public ReplyPacket | setBreakpoint(Location location, byte suspendPolicy) |
public long | setBreakpointAtMethodBegin(long classID, String methodName) Sets breakpoint at the beginning of method with name methodName. |
public ReplyPacket | setClassLoad(String classSignature) Sets ClassLoad event request for given class signature. |
public ReplyPacket | setClassLoad(long referenceTypeID) Set ClassLoad event request for given class ID. |
public ReplyPacket | setClassPrepared(String classRegexp) Sets ClassPrepare event request for given class name pattern.
Parameters: classRegexp - Required class pattern. |
public ReplyPacket | setClassPrepared(long referenceTypeID) Set ClassPrepare event request for given class ID. |
public ReplyPacket | setClassUnload(String classRegexp) Sets ClassUnload event request for given class name pattern. |
public ReplyPacket | setClassUnload(long referenceTypeID) Set ClassUnload event request for given class ID. |
public void | setConnection(TransportWrapper connection) Sets established connection channel to be used with this VmMirror and
starts reading packets. |
public ReplyPacket | setCountableBreakpoint(byte typeTag, Breakpoint breakpoint, byte suspendPolicy, int count) |
public ReplyPacket | setCountableException(String exceptionSignature, boolean caught, boolean uncaught, int count) Sets exception event request for given exception class signature. |
public ReplyPacket | setCountableMethodEntry(String classRegexp, int count) Sets METHOD_ENTRY event request for specified class name pattern. |
public ReplyPacket | setCountableMethodExit(String classRegexp, int count) Sets METHOD_EXIT event request for specified class name pattern. |
public ReplyPacket | setEvent(Event event) Set event request for given event. |
public ReplyPacket | setException(String exceptionSignature, boolean caught, boolean uncaught) Sets exception event request for given exception class signature. |
public ReplyPacket | setException(long exceptionID, boolean caught, boolean uncaught) Sets exception event request for given exception class ID. |
public ReplyPacket | setFieldAccess(String classSignature, byte classTypeTag, String fieldName) Sets field access event request for specified class signature and field
name. |
public ReplyPacket | setFieldModification(String classSignature, byte classTypeTag, String fieldName) Sets field modification event request for specified class signature and
field name. |
final public void | setInstanceFieldsValues(long objectID, long[] fieldIDs, Value[] values) |
final public void | setLocalVars(Frame frame, Variable[] vars, Value[] values) |
public ReplyPacket | setMethodEntry(String classRegexp) Sets METHOD_ENTRY event request for specified class name pattern. |
public ReplyPacket | setMethodExit(String classRegexp) Sets METHOD_EXIT event request for specified class name pattern. |
final public void | setStaticFieldsValues(long classID, long[] fieldIDs, Value[] values) |
public ReplyPacket | setStep(String threadName, int stepSize, int stepDepth) Sets step event request for given thread name. |
public ReplyPacket | setStep(String[] classRegexp, long threadID, int stepSize, int stepDepth) Sets SINGLE_STEP event request for classes whose name does not match the
given restricted regular expression
Parameters: classRegexp - Disallowed class patterns. |
public ReplyPacket | setThreadEnd() Sets THREAD_END event request. |
public ReplyPacket | setThreadStart() Sets THREAD_START event request. |
public ReplyPacket | suspend() Suspends debuggee VM. |
public ReplyPacket | suspendThread(long threadID) Suspends specified thread in debuggee VM. |
public long | waitForBreakpoint(long requestID) Waits for stop on breakpoint and gets id of thread where it stopped. |