Java Code Examples for com.intellij.xdebugger.evaluation.XDebuggerEvaluator#XEvaluationCallback
The following examples show how to use
com.intellij.xdebugger.evaluation.XDebuggerEvaluator#XEvaluationCallback .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VmServiceWrapper.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 6 votes |
public void evaluateInFrame(@NotNull final String isolateId, @NotNull final Frame vmFrame, @NotNull final String expression, @NotNull final XDebuggerEvaluator.XEvaluationCallback callback) { addRequest(() -> myVmService.evaluateInFrame(isolateId, vmFrame.getIndex(), expression, new EvaluateInFrameConsumer() { @Override public void received(InstanceRef instanceRef) { callback.evaluated(new DartVmServiceValue(myDebugProcess, isolateId, "result", instanceRef, null, null, false)); } @Override public void received(Sentinel sentinel) { callback.errorOccurred(sentinel.getValueAsString()); } @Override public void received(ErrorRef errorRef) { callback.errorOccurred(DartVmServiceEvaluator.getPresentableError(errorRef.getMessage())); } @Override public void onError(RPCError error) { callback.errorOccurred(error.getMessage()); } })); }
Example 2
Source File: VmServiceWrapper.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 6 votes |
public void evaluateInTargetContext(@NotNull final String isolateId, @NotNull final String targetId, @NotNull final String expression, @NotNull final XDebuggerEvaluator.XEvaluationCallback callback) { evaluateInTargetContext(isolateId, targetId, expression, new EvaluateConsumer() { @Override public void received(InstanceRef instanceRef) { callback.evaluated(new DartVmServiceValue(myDebugProcess, isolateId, "result", instanceRef, null, null, false)); } @Override public void received(Sentinel sentinel) { callback.errorOccurred(sentinel.getValueAsString()); } @Override public void received(ErrorRef errorRef) { callback.errorOccurred(DartVmServiceEvaluator.getPresentableError(errorRef.getMessage())); } @Override public void onError(RPCError error) { callback.errorOccurred(error.getMessage()); } }); }
Example 3
Source File: VmServiceWrapper.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 6 votes |
public void evaluateInFrame(@NotNull final String isolateId, @NotNull final Frame vmFrame, @NotNull final String expression, @NotNull final XDebuggerEvaluator.XEvaluationCallback callback) { addRequest(() -> myVmService.evaluateInFrame(isolateId, vmFrame.getIndex(), expression, new EvaluateInFrameConsumer() { @Override public void received(InstanceRef instanceRef) { callback.evaluated(new DartVmServiceValue(myDebugProcess, isolateId, "result", instanceRef, null, null, false)); } @Override public void received(Sentinel sentinel) { callback.errorOccurred(sentinel.getValueAsString()); } @Override public void received(ErrorRef errorRef) { callback.errorOccurred(DartVmServiceEvaluator.getPresentableError(errorRef.getMessage())); } @Override public void onError(RPCError error) { callback.errorOccurred(error.getMessage()); } })); }
Example 4
Source File: VmServiceWrapper.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 6 votes |
public void evaluateInTargetContext(@NotNull final String isolateId, @NotNull final String targetId, @NotNull final String expression, @NotNull final XDebuggerEvaluator.XEvaluationCallback callback) { evaluateInTargetContext(isolateId, targetId, expression, new EvaluateConsumer() { @Override public void received(InstanceRef instanceRef) { callback.evaluated(new DartVmServiceValue(myDebugProcess, isolateId, "result", instanceRef, null, null, false)); } @Override public void received(Sentinel sentinel) { callback.errorOccurred(sentinel.getValueAsString()); } @Override public void received(ErrorRef errorRef) { callback.errorOccurred(DartVmServiceEvaluator.getPresentableError(errorRef.getMessage())); } @Override public void onError(RPCError error) { callback.errorOccurred(error.getMessage()); } }); }
Example 5
Source File: UnityScriptDebuggerProvider.java From consulo-unity3d with Apache License 2.0 | 5 votes |
@Override public void evaluate(@Nonnull DotNetStackFrameProxy stackFrameMirror, @Nonnull DotNetDebugContext context, @Nonnull String s, @Nullable PsiElement element, @Nonnull XDebuggerEvaluator.XEvaluationCallback callback, @Nullable XSourcePosition sourcePosition) { callback.errorOccurred("UnityScript evaluation is not supported"); }
Example 6
Source File: XDebuggerEvaluationDialog.java From consulo with Apache License 2.0 | 5 votes |
public void startEvaluation(@Nonnull 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); } }