Search in sources :

Example 1 with ExpressionException

use of org.eclipse.che.plugin.jdb.server.expression.ExpressionException in project che by eclipse.

the class JavaDebugger method evaluate.

private com.sun.jdi.Value evaluate(ExpressionParser parser) throws DebuggerException {
    final long startTime = System.currentTimeMillis();
    try {
        return parser.evaluate(new Evaluator(vm, getCurrentThread()));
    } catch (ExpressionException e) {
        throw new DebuggerException(e.getMessage(), e);
    } finally {
        final long endTime = System.currentTimeMillis();
        LOG.debug("==>> Evaluate time: {} ms", (endTime - startTime));
        // Evaluation of expression may update state of frame.
        invalidateCurrentFrame();
    }
}
Also used : DebuggerException(org.eclipse.che.api.debugger.server.exceptions.DebuggerException) Evaluator(org.eclipse.che.plugin.jdb.server.expression.Evaluator) ExpressionException(org.eclipse.che.plugin.jdb.server.expression.ExpressionException)

Aggregations

DebuggerException (org.eclipse.che.api.debugger.server.exceptions.DebuggerException)1 Evaluator (org.eclipse.che.plugin.jdb.server.expression.Evaluator)1 ExpressionException (org.eclipse.che.plugin.jdb.server.expression.ExpressionException)1