Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2028

45s: single step in debugger may take so long......

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 10.0
    • None
    • debugger - Java
    • 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?

      Attachments

        1. DebuggerGenerateSample.diff
          6 kB
          Jaroslav Tulach
        2. Debugger43sForASingleSteop.npss
          1.78 MB
          Jaroslav Tulach

        Activity

          People

            entlicher Martin Entlicher
            jtulach Jaroslav Tulach
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: