This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Dev build, Mustang, Linux. I was trying to debug a unit test (ProjectXMLManagerTest). I had set a breakpoint in a test method, which the debugger hit (though it seemed to take longer than usual). Then I stepped into a method (OK), and opened the Local Vars window. This just displayed "Please wait..." or similar and never showed any vars or values. After a minute or so, I got bored and pressed F8. Nothing happened. All the other debugger windows indicated that there was no call stack, no watches available, etc. Finally I quit and Finish'd the debugger session; at that point this NPE was thrown.
Created attachment 23211 [details] Stack trace
Assuming not reproducible.
Nope, in fact I cannot debug at all. Tried the same test again. Again I could hit the breakpoint and step into a method. But when I tried to see local vars (toString values), the window just said "Evaluating..." for every field of "this". Then the IDE froze. (You must not block EQ waiting for a remote VM to return a result!)
Created attachment 23213 [details] Log file, just for background info
Created attachment 23214 [details] Some thread dumps
This is basically a bug in JDI: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6296125 The NPE can be easily fixed, but it does not cause any harm. We should not disable breakpoints when just variables are evaluated (when no methods are being invoked). This will reduce the chance that you will hit bug #6296125. Also we should move VariablesNodeModel.getShortDescription() processing out of AWT event queue.
Note that I have toString() display on for variables, so evaluating variables *can* cause arbitrary method invocations.
The NPE is fixed: /cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/actions/StepActionProvider.java,v <-- StepActionProvider.java new revision: 1.21; previous revision: 1.20
The deadlock is solved in trunk (the tooltip is computed in RP): /cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/models/VariablesNodeModel.java,v <-- VariablesNodeModel.java new revision: 1.11; previous revision: 1.10
I've submitted issue #61429 for the remaining problem.
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.