Returns a variable with the given name, or
null
if unable to resolve a variable with the name, or if this thread is not currently suspended.
Variable lookup works only when a thread is suspended. Lookup is performed in all stack frames, in a top-down order, returning the first successful match, or null
if no match is found.
@param variableName the name of the variable to search for
@return a variable, or
null
if none
@exception DebugException if this method fails. Reasons include:
- Failure communicating with the VM. The DebugException's status code contains the underlying exception responsible for the failure.