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.
NetBeans IDE 6.5 (Build 200811051154) Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13 System: Windows XP version 5.1 Finishing a session on the breakpoint will cause the next debug cycle to fail to hit the breakpoint. Workaround is to close the browser (or move the program counter past the breakpoint). The next debug cycle will stop on breakpoint. 1. Set breakpoint on the attached file on line 14 2. Run debug 3. program counter stops as expected on line14 4. immediately press finish session on toolbar 5. Run debug again >toolbar not activated on suspend, breakpoint not hit 6. Close browser 7. Run debug again. >OK toolbar activated, breakpoint hit. 8. Press continue 9. Press finish 10. Run debug again >OK toolbar activated
Created attachment 73406 [details] test file
It looks like the debugger will not run correctly if Firebug is currently suspended. Normally, this does not occur since when a session is closed, we clear all breakpoints before terminating. However, in this case there is a debugger keyword. The execution probably goes like this: 1) Suspend on line 14 on first debugger session. 2) After killing the session, Firebug suspends on debugger keyword. 3) Start new session, which creates a new window. 4) Firebug does not start correctly on second session since it is still suspended on the debugger keyword in step #2. The solution would probably be: (1) create the second session somehow (may not be possible), or (2) disable Firebug after killing the session in the IDE.
Fixed in trunk. The debugger is correctly shut down when the session is killed, instead of suspending on the next debugger keyword. Changeset: 522b43a7ae9e
Integrated into 'main-golden', will be available in build *200811120201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/522b43a7ae9e User: Quy Nguyen <quynguyen@netbeans.org> Log: #152596 - Prevent debugger from suspending on debugger keywords when terminating session while suspended