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.
Product Version: NetBeans IDE Dev (Build 200809040201) Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14 System: Windows Vista version 6.0 running on x86; Cp1250; cs_CZ (nb) Observed: after a long debugging session breakpoints stopped showing in breakpoints view, although all actions taken in breakpoints view(disable all, enable all, etc) still applied. See the attached screenshot.
Created attachment 69070 [details] Screenshot
*** Issue 147537 has been marked as a duplicate of this issue. ***
Raising this to P2 because thats what I'd intended to set when I opened the duplicate 147537. Not showing breakpoints is a *significant* usability defect!
Sure, I have assigned it such a low prioruty, because I was completely unable to reproduce it despite trying a lot, now that it happens to you too I agree with the priority. It would be best, if you added the details like build number, jdk version and possibly some steps to reproduce.
Petr or Gordon, do you know if when this bug occurs the content of Breakpoints view is fixed by terminating of the debugging session and starting a new one? As I can not reproduce this, I'm looking into the code and there's a filter on the window content applied only when a Java debugger session is running. I'd like to know, at least, if it's a bug of the default window (when Breakpoints is opened without any debugging session running) or just the Java filter (when Java debugger session is running). Any steps leading to reproducibility of this are appreciated.
> ... do you know if when this bug occurs the content of Breakpoints view is fixed by terminating of the > debugging session and starting a new one? Its not fixed by starting a new debugger session. I pretty much *never* see breakpoints any more. Could it have anything to do with what installer was used? I typically download the JavaSE installer and (sometimes) add the C/C++ plugin. I pretty much never use more than JSE and C/C++.
With me it was the same - I never saw another breakpoint in breakpoints view again until i deleted whole userdir.
And I always use full IDE.
Thanks for your comments. Gordon, if you do not see breakpoints even after restart of the IDE, can you please attach here <User-Dir>/config/Services/org-netbeans-modules-debugger-Settings.properties file? There are stored breakpoints, so there can be an indication of what the problem is. Also removing this file (backuping it somewhere else) will probably fix this problem, can be used as a workaround, but you'll loose all breakpoints and other debugger settings (selected sources, watches, etc).
I rebooted yesterday and now breakpoints are showing. I suspect sometime in the next day or so they'll disappear and then I'll attach the properties file. I suspect its OK as the breakpoints do work as expected, its only their (in)visibility in the BP view which is the problem.
Created attachment 70168 [details] debugger settings properties file
Martin, I filed this bug while working on Solaris, but see the problem on Windows (Vista) too. The attached properties file comes from the 20080909 dev build.
Gordon, unfortunately the debugger settings did not help to find the cause of this. But I've started to add some logging into the code and I've found the problem in org.netbeans.modules.cnd.debugger.gdb.models.BreakpointsTreeModelFilter On line 102 there's: Object[] ch = original.getChildren(parent, 0, 0); I've no idea why this bug is random, but this definitely looks strange. Moving to gdb debugger for evaluation...
In the past, there was the same line in org.netbeans.modules.debugger.jpda.ui.models.BreakpointsTreeModelFilter. I have corrected it when fixing issue 142247. It should be changed also in cnd to Object[] ch = original.getChildren (parent, from, to); This will most probably fix the problem with not showing breakpoints.
FYI: I've added some logging in http://hg.netbeans.org/main/rev/3c7b074d2df0
Fixed with http://hg.netbeans.org/main/rev/fa25a13dba4d.
Integrated into 'main-golden', will be available in build *200809231435* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/3c7b074d2df0 User: mentlicher@netbeans.org Log: #146214 - Some logging added to be able to see why breakpoints are not displayed in Breakpoints view.
verified in build 20080924
*** Bug 179424 has been marked as a duplicate of this bug. ***
*** Bug 179425 has been marked as a duplicate of this bug. ***