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 5761

Summary: Add/Remove Breakpoint using the Editor`s context menu inserts breakpoint on a wrong line.
Product: debugger Reporter: Jan Chalupa <jchalupa>
Component: CodeAssignee: Daniel Prusa <dprusa>
Status: CLOSED WORKSFORME    
Severity: normal    
Priority: P4    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jan Chalupa 2000-02-15 21:44:41 UTC
The problem occurs when you add/delete lines in the non-guarded area. If you add/remove breakpoints using the editor`s context menu, they appear at the current position +/- offset, where `offset` is
 equal to the number of previously added/deleted lines.

Other methods of adding/removing breakpoints do not seem to suffer from this problem.

After saving the modified file, it fixes -- the context menu action works fine.

Steps to reproduce:

1. In the editor, add or delete a few lines to a java source file.
2. Move the cursor below the point where changes has been made.

3. Right-click in the editor pane and select Add/Remove Breakpoint in the context menu.
4. You should see a misplaced breakpoint.
Comment 1 Marek Grummich 2000-07-25 09:09:59 UTC
Priority is changed to P4 (normal).
Comment 2 Jan Stola 2000-11-03 15:07:59 UTC
Cannot reproduce in build 1137 and 57.
Comment 3 Jan Stola 2000-11-08 09:42:59 UTC
Verified in build 1143 and 65.
Comment 4 Quality Engineering 2003-06-30 17:26:07 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.