avoid messages like "Unable to evaluate insert key expression: Cannot evaluate: thread is not paused at breakpoint" when we pause the debugger

This commit is contained in:
Egor Ushakov
2017-12-12 20:42:45 +03:00
parent 6e1b6b0a63
commit 4682b8729a
@@ -272,7 +272,9 @@ public class StackCapturingLineBreakpoint extends WildcardMethodBreakpoint {
}
catch (EvaluateException e) {
LOG.debug(e);
debugProcess.printToConsole(DebuggerBundle.message("error.unable.to.evaluate.insert.expression", e.getMessage()) + "\n");
if (!(e.getCause() instanceof IncompatibleThreadStateException)) {
debugProcess.printToConsole(DebuggerBundle.message("error.unable.to.evaluate.insert.expression", e.getMessage()) + "\n");
}
}
}
}