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 97684

Summary: Breakpoints do not accept changes of their attributes in running debugger
Product: debugger Reporter: ehucka <ehucka>
Component: CodeAssignee: Martin Entlicher <mentlicher>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description ehucka 2007-03-12 18:47:58 UTC
NetBeans IDE Dev (Build 200703111900)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Linux version 2.6.16-1.2122_FC5 running on i386

Steps:

1. toggle line breakpoint in some repeated code
2. start debugging
3. wait for debuger stop on the line
4. select the breakpoint in breakpoints view and invoke customize action on it
5. change line number and confirm customize dialog
6. press continue

Result: breakpoint annotation in editor is moved to the new line but debugger
stop on the old line
Comment 1 ehucka 2007-03-13 13:17:21 UTC
It seems this 'update' of main breakpoint attributes in running debugger does
not support any type of breakpoints. Field name, stop on for field breakpoints,
method name and stop on for method breakpoints, class name for class breakpoints
etc.
I think it should be at least reflected by ui, e.g. disabled components in
customize breakpoint dialog.
Comment 2 Martin Entlicher 2007-03-15 09:15:48 UTC
Reproduced. This is a bug, it should re-submit the breakpoint.
Comment 3 Martin Entlicher 2007-03-22 17:57:38 UTC
Fixed in trunk:

/cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/breakpoints/BreakpointImpl.java,v
 <--  BreakpointImpl.java
new revision: 1.37; previous revision: 1.36
Comment 4 ehucka 2007-03-26 09:55:00 UTC
verified in m8