use of com.intellij.xdebugger.evaluation.XDebuggerEvaluator in project intellij-community by JetBrains.
the class XDebuggerEvaluationDialog method startEvaluation.
public void startEvaluation(@NotNull XDebuggerEvaluator.XEvaluationCallback evaluationCallback) {
final XDebuggerEditorBase inputEditor = getInputEditor();
inputEditor.saveTextInHistory();
XExpression expression = inputEditor.getExpression();
XDebuggerEvaluator evaluator = mySession.getDebugProcess().getEvaluator();
if (evaluator == null) {
evaluationCallback.errorOccurred(XDebuggerBundle.message("xdebugger.evaluate.stack.frame.has.not.evaluator"));
} else {
evaluator.evaluate(expression, evaluationCallback, null);
}
}
use of com.intellij.xdebugger.evaluation.XDebuggerEvaluator in project intellij-community by JetBrains.
the class XDebuggerTestUtil method evaluate.
private static Pair<XValue, String> evaluate(XDebugSession session, XExpression expression, long timeout) {
XStackFrame frame = session.getCurrentStackFrame();
assertNotNull(frame);
XDebuggerEvaluator evaluator = frame.getEvaluator();
assertNotNull(evaluator);
XTestEvaluationCallback callback = new XTestEvaluationCallback();
evaluator.evaluate(expression, callback, session.getCurrentPosition());
return callback.waitFor(timeout);
}
Aggregations