Search in sources :

Example 1 with LocalVariableDescriptorImpl

use of com.intellij.debugger.ui.impl.watch.LocalVariableDescriptorImpl in project intellij-community by JetBrains.

the class DescriptorTestCase method localVar.

protected LocalVariableDescriptorImpl localVar(DebuggerTree frameTree, EvaluationContextImpl evaluationContext, String name) {
    try {
        StackFrameProxy frameProxy = evaluationContext.getFrameProxy();
        assert frameProxy != null;
        LocalVariableDescriptorImpl local = frameTree.getNodeFactory().getLocalVariableDescriptor(null, frameProxy.visibleVariableByName(name));
        local.setContext(evaluationContext);
        return local;
    } catch (EvaluateException e) {
        error(e);
        return null;
    }
}
Also used : EvaluateException(com.intellij.debugger.engine.evaluation.EvaluateException) LocalVariableDescriptorImpl(com.intellij.debugger.ui.impl.watch.LocalVariableDescriptorImpl) StackFrameProxy(com.intellij.debugger.engine.jdi.StackFrameProxy)

Aggregations

EvaluateException (com.intellij.debugger.engine.evaluation.EvaluateException)1 StackFrameProxy (com.intellij.debugger.engine.jdi.StackFrameProxy)1 LocalVariableDescriptorImpl (com.intellij.debugger.ui.impl.watch.LocalVariableDescriptorImpl)1