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.

Bug 146214 - Breakpoints don't show in breakpoints view
Summary: Breakpoints don't show in breakpoints view
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ gordonp
URL:
Keywords: RANDOM
: 147537 179424 179425 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-04 16:32 UTC by Jana Maleckova
Modified: 2010-05-10 08:34 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (165.21 KB, image/jpeg)
2008-09-04 16:33 UTC, Jana Maleckova
Details
debugger settings properties file (4.75 KB, text/plain)
2008-09-19 19:36 UTC, _ gordonp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2008-09-04 16:32:35 UTC
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.
Comment 1 Jana Maleckova 2008-09-04 16:33:16 UTC
Created attachment 69070 [details]
Screenshot
Comment 2 Petr Cyhelsky 2008-09-17 22:02:53 UTC
*** Issue 147537 has been marked as a duplicate of this issue. ***
Comment 3 _ gordonp 2008-09-18 00:26:58 UTC
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!
Comment 4 Petr Cyhelsky 2008-09-18 05:18:02 UTC
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.
Comment 5 Martin Entlicher 2008-09-18 16:15:05 UTC
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.
Comment 6 _ gordonp 2008-09-18 17:20:34 UTC
> ... 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++.
Comment 7 Petr Cyhelsky 2008-09-18 17:26:53 UTC
With me it was the same - I never saw another breakpoint in breakpoints view again until i deleted whole userdir.
Comment 8 Petr Cyhelsky 2008-09-18 17:28:02 UTC
And I always use full IDE.
Comment 9 Martin Entlicher 2008-09-18 17:47:15 UTC
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).
Comment 10 _ gordonp 2008-09-18 19:20:44 UTC
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.
Comment 11 _ gordonp 2008-09-19 19:36:56 UTC
Created attachment 70168 [details]
debugger settings properties file
Comment 12 _ gordonp 2008-09-19 19:38:54 UTC
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.
Comment 13 Martin Entlicher 2008-09-22 15:02:37 UTC
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...
Comment 14 Daniel Prusa 2008-09-22 15:16:04 UTC
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.
Comment 15 Martin Entlicher 2008-09-22 15:43:15 UTC
FYI: I've added some logging in http://hg.netbeans.org/main/rev/3c7b074d2df0
Comment 16 _ gordonp 2008-09-22 23:46:56 UTC
Fixed with http://hg.netbeans.org/main/rev/fa25a13dba4d.
Comment 17 Quality Engineering 2008-09-23 17:58:26 UTC
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.
Comment 18 Alexander Pepin 2008-09-24 15:29:09 UTC
verified in build 20080924
Comment 19 Martin Entlicher 2010-01-12 08:51:17 UTC
*** Bug 179424 has been marked as a duplicate of this bug. ***
Comment 20 Marian Mirilovic 2010-05-10 08:34:18 UTC
*** Bug 179425 has been marked as a duplicate of this bug. ***