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 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.
Created attachment 85163 [details] Screenshot
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?
I have just met this too, no idea how to reproduce though:(...
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.
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...
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?
*** Bug 178282 has been marked as a duplicate of this bug. ***
Created attachment 92324 [details] Messages log just after the problem appeared
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.
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?
In case a solution is found for this issue, marking as 68patch-candidate.
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...
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.
Created attachment 93035 [details] Archived userdir after the problem happened.
DebuggerBreakpointAnnotation should have been used instead of DebuggerAnnotation. This is why java.lang.IllegalStateException: Unknown annotation type 'Breakpoint' was thrown.
I've found that this is caused by JSP breakpoints.
Hopefully fixed by correction of JSP breakpoints in changeset: 158811:004a0bb71d42 http://hg.netbeans.org/main/rev/004a0bb71d42
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.
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)
Created attachment 133547 [details] IDE log after error.
Thanks for the report. org.netbeans.modules.web.debug.Context.getContext() returns Java editor context, which does not handle JSP breakpoints.
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.
Should be fixed by changeset: 254853:8c0532cd32b0 http://hg.netbeans.org/core-main/rev/8c0532cd32b0
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.
Created attachment 156595 [details] Netbeans 8.0.2 shows no breakpoint icons
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.