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 130455

Summary: Can't Set Breakpoints On Some Lines
Product: java Reporter: imnes <imnes>
Component: EditorAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Screenshot of netbeans java editor

Description imnes 2008-03-18 20:12:03 UTC
In the Java source editor, usually set breakpoints by clicking the line number in the gutter of the editor.  If there 
is a code assist icon (like the green -I- or annotation list) you can't put a breakpoint on those lines.  (Such as line 
numbers 71, 78, 84, 88 in the screenshot link below).

Screenshot available:
http://picasaweb.google.com/nick.smith/MyScreenshots/photo?authkey=Cq24luHpr7s#5179160389108913266

Behavior seems to be the same on Windows XP and Linux GTK (Ubuntu) both using Java 6.

I thought one workaround would be to navigate to a line of code and set a breakpoint using the keybaord, but couldn't 
find the shortcut key to do that?

Nick
Comment 1 imnes 2008-03-18 20:13:12 UTC
Created attachment 58621 [details]
Screenshot of netbeans java editor
Comment 2 Jan Lahoda 2008-03-19 09:34:32 UTC
Please see issue #105746. The shortcut for Toggle [line] Breakpoint is Ctrl-F8, for method and other breakpoints there
is New Breakpoint - Ctrl-Shift-F8.

*** This issue has been marked as a duplicate of 105746 ***