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 169096 - Breakpoint icons not shown in gutter, lines hot highlighted
Summary: Breakpoint icons not shown in gutter, lines hot highlighted
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 178282 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-24 09:40 UTC by Vojtech Sigler
Modified: 2015-10-07 16:23 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (214.54 KB, image/png)
2009-07-24 09:41 UTC, Vojtech Sigler
Details
Messages log just after the problem appeared (65.84 KB, text/plain)
2009-12-09 03:15 UTC, Vojtech Sigler
Details
Archived userdir after the problem happened. (8.59 MB, application/octet-stream)
2010-01-04 02:22 UTC, Vojtech Sigler
Details
IDE log after error. (50.91 KB, application/octet-stream)
2013-04-17 22:39 UTC, ecerichter
Details
Netbeans 8.0.2 shows no breakpoint icons (89.92 KB, image/png)
2015-10-07 16:02 UTC, randomik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vojtech Sigler 2009-07-24 09:40:59 UTC
Product Version: NetBeans IDE 6.7.1 (Build 200907230233)
Java: 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02
System: Linux version 2.6.28-13-generic running on i386; UTF-8; en_US (nb)

From time to time the IDE gets to a state where I can set breakpoints (they show in Breakpoints view and are hit during
debugging), but they are not shown in editor - there are no icons in the gutter and the lines are not highlighted in
red. I had this behavior for line and method breakpoints, but it probably applies to all of them.

I am not able to reproduce this on demand, it happens during testing after a lot of debugging sessions, breakpoints set,
deleted,...

If I find steps to reproduce, I'll attach them. I've looked into the messages log, but there are no messages regarding
this. All I can add is a screenshot.
Comment 1 Vojtech Sigler 2009-07-24 09:41:46 UTC
Created attachment 85163 [details]
Screenshot
Comment 2 Martin Entlicher 2009-07-29 16:42:38 UTC
If there are no exceptions in messages.log file, we can hardly guess what is the cause of this.
It can be a fault of debugger annotations or Editor highlighting. We need more information to locate the problem.

Do other annotations (warning icons, implemented methods, etc.) show up in Editor?
Comment 3 Petr Dvorak 2009-07-30 12:50:40 UTC
I have just met this too, no idea how to reproduce though:(...
Comment 4 Vojtech Sigler 2009-09-18 13:03:57 UTC
I did not manage to reproduce this for a long time now. Since it seems gone and I'm unable to supply any relevant info,
resolving as INVALID.
Comment 5 Marian Mirilovic 2009-10-09 06:59:21 UTC
I've got into this problem while using NB 6.8 M2 ... would be nice to know whether I can turn some logging on, once I am
able to reproduce it .. I saw it couple times, even after IDE restart, but do not have 100% reproducible scenario. 

BTW: this is quiet dangerous, because at first glance it looks like debugger doesn't work at all -> you can't work with
breakpoints, just opening breakpoints window helps to avoid such meaning 

I've found also out, that once it happened, it was reproducible only for one file, so when I worked with another file it
worked without any problems. Unfortunately I haven't tried to use other annotations - will try when I reproduce it today...
Comment 6 Martin Entlicher 2009-10-12 15:32:19 UTC
When this happens, please attach messages.log at least. Steps to reproduce would be appreciated.
We do not have logging specific to annotations in the code. And it's hard to say if it's strictly a debugger problem, or
if something went wrong in the Editor annotation mechanism.
Do you see other kinds of annotations in Editor when this happens?
Comment 7 Marian Mirilovic 2009-12-09 02:09:56 UTC
*** Bug 178282 has been marked as a duplicate of this bug. ***
Comment 8 Vojtech Sigler 2009-12-09 03:15:20 UTC
Created attachment 92324 [details]
Messages log just after the problem appeared
Comment 9 Vojtech Sigler 2009-12-09 03:16:41 UTC
Changing OS to All since it is not a Linux-only problem.

I just bumped into this while testing 6.8 FCS (Build 200912041610), messages log attached, reopening.
Comment 10 Vojtech Sigler 2009-12-09 03:24:56 UTC
I still cannot provide any reliable steps to reproduce. I've been just playing around with all types of breakpoints, adding, removing, customizing,...

As for other annotations, I can see the light bulb "suggestion" annotation, current program counter (editor line also green), the green I for "implements" annotation and purple triangle for call site annotation. All of the annotations seem to be there except for breakpoints (line, method, field).

After restart the problem is gone partially - breakpoints from the last netbeans session (those that did not show in gutter) are still not shown. However, adding new works as desired again (red line, gutter icon).

Should I upload the userdir?
Comment 11 Vojtech Sigler 2009-12-09 03:33:07 UTC
In case a solution is found for this issue, marking as 68patch-candidate.
Comment 12 Martin Entlicher 2009-12-23 12:25:04 UTC
This is very strange (and I've already seen this reported somewhere):
INFO: Unknown annotation type 'Breakpoint'.
java.lang.IllegalStateException: Unknown annotation type 'Breakpoint'.
This is almost certainly the reason why breakpoints do not show up. But debugger defines the 'Breakpoint' annotation type. Maybe the userdir would help...
Comment 13 Vojtech Sigler 2010-01-04 02:14:50 UTC
I just tried it again with the archived userdir and breakpoints (even the previously misbehaving ones) seem to work fine... I'll upload it anyway, maybe it could give a hint to the problem.
Comment 14 Vojtech Sigler 2010-01-04 02:22:42 UTC
Created attachment 93035 [details]
Archived userdir after the problem happened.
Comment 15 Martin Entlicher 2010-02-02 06:13:55 UTC
DebuggerBreakpointAnnotation should have been used instead of DebuggerAnnotation.
This is why java.lang.IllegalStateException: Unknown annotation type 'Breakpoint' was thrown.
Comment 16 Martin Entlicher 2010-02-02 08:13:36 UTC
I've found that this is caused by JSP breakpoints.
Comment 17 Martin Entlicher 2010-02-02 09:08:32 UTC
Hopefully fixed by correction of JSP breakpoints in changeset: 158811:004a0bb71d42
http://hg.netbeans.org/main/rev/004a0bb71d42
Comment 18 Quality Engineering 2010-02-03 21:58:22 UTC
Integrated into 'main-golden', will be available in build *201002040200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/004a0bb71d42
User: mentlicher@netbeans.org
Log: #169096 - Create BreakpointAnnotation for JSP breakpoints.
Comment 19 ecerichter 2013-04-17 22:37:58 UTC
I've hit the following error/instruction in DEV 201304162300:

java.lang.IllegalStateException: Wrong annotation type: Breakpoint. Please report to bug #169096.
	at org.netbeans.modules.debugger.jpda.projects.DebuggerAnnotation.<init>(DebuggerAnnotation.java:83)
	at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl.annotate(EditorContextImpl.java:334)
	at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl.annotate(EditorContextImpl.java:312)
	at org.netbeans.modules.web.debug.Context.annotate(Context.java:111)
	at org.netbeans.modules.web.debug.Context.annotate(Context.java:227)
	at org.netbeans.modules.web.debug.JspBreakpointAnnotationListener.annotate(JspBreakpointAnnotationListener.java:135)
	at org.netbeans.modules.web.debug.JspBreakpointAnnotationListener.breakpointAdded(JspBreakpointAnnotationListener.java:97)
	at org.netbeans.api.debugger.DebuggerManager.fireBreakpointCreated(DebuggerManager.java:883)
	at org.netbeans.api.debugger.DebuggerManager.initBreakpoints(DebuggerManager.java:1055)
	at org.netbeans.api.debugger.DebuggerManager.initBreakpoints(DebuggerManager.java:959)
	at org.netbeans.api.debugger.DebuggerManager.getBreakpoints(DebuggerManager.java:597)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider.annotate(BreakpointAnnotationProvider.java:158)
	at org.netbeans.modules.debugger.jpda.projects.BreakpointAnnotationProvider.annotate(BreakpointAnnotationProvider.java:147)
	at org.openide.text.CloneableEditorSupport.ensureAnnotationsLoaded(CloneableEditorSupport.java:420)
	at org.openide.text.CloneableEditor$DoInitialize$3.run(CloneableEditor.java:870)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2044)
Comment 20 ecerichter 2013-04-17 22:39:17 UTC
Created attachment 133547 [details]
IDE log after error.
Comment 21 Martin Entlicher 2013-04-19 08:17:31 UTC
Thanks for the report.
org.netbeans.modules.web.debug.Context.getContext() returns Java editor context, which does not handle JSP breakpoints.
Comment 22 ecerichter 2013-04-20 01:27:58 UTC
I'm getting this error whenever I try to set a breakpoint in a JSP page.
Please, let me know when it is fixed in DEV, I'll be glad to help testing this feature since debugging JSP pages is an important task in my work.

Thanks.
Comment 23 Martin Entlicher 2013-05-28 15:12:37 UTC
Should be fixed by changeset:   254853:8c0532cd32b0
http://hg.netbeans.org/core-main/rev/8c0532cd32b0
Comment 24 Quality Engineering 2013-05-30 01:38:58 UTC
Integrated into 'main-golden', will be available in build *201305292301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/8c0532cd32b0
User: mentlicher@netbeans.org
Log: #169096: JSP debugger reuses JPDA breakpoints annotation.
Comment 25 randomik 2015-10-07 16:02:30 UTC
Created attachment 156595 [details]
Netbeans 8.0.2 shows no breakpoint icons
Comment 26 Martin Entlicher 2015-10-07 16:23:11 UTC
Resolving back as fixed. The latest screenshot showing a problem in C++ is very likely a different problem. In this issue a problem of Java/JSP breakpoints was solved.
I've submitted issue #255781 for this.