Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
10.0
-
None
-
None
Description
I have problems with debugger when I debug NetBeans based applications. Sometimes it just takes sooooo loooong to make a single step over. After some analysis it turned out that the whole slowdown is caused by evaluation of variables. When I modify the code to:
diff --git a/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/JPDADebuggerImpl.java b/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/JPDADebuggerImpl.java index 0444242..933065c 100644 --- a/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/JPDADebuggerImpl.java +++ b/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/JPDADebuggerImpl.java @@ -345,7 +347,7 @@ public class JPDADebuggerImpl extends JPDADebugger { */ public Variable evaluate (String expression, CallStackFrame csf, ObjectVariable var) throws InvalidExpressionException { - return evaluateGeneric(new EvaluatorExpression(expression), csf, var); + throw new InvalidExpressionException("skipping: " + expression); }
then the debugger starts to behave normally - it it can step in, over and out without any issues.
The next question is what is happening in the evaluateGeneric that takes so long?