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 Dev (Build 200809151401) Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13 System: Windows XP version 5.1 1. create a plain web application using glassfish v3 2. via project properties, debug, uncheck client side javascript 3. add scriptlet code after the <h1> tag: <% java.util.Date date = new java.util.Date(); %> Hello! The time is now <% out.println(String.valueOf(date)); %> 4. set a breakpoint on the line with java.util.Date 5. Run Debug Main project 6. ok debugger suspends, toolbar is activated, Session says "stopped". Finish session. 7. Debug Main project again > Debugger does not suspend 8. Finish Session Close and reopen project or restart IDE does not work to suspend on breakpoint. Need to delete the breakpoint which can be done via the Debugging breakpoints window then debug again, then debugger will suspend.
Reproduced. I doubt this is a bug of debuggercore.
It got broken probably after http://hg.netbeans.org/main?cmd=changeset;node=fed90c092c88 JSP line breakpoint submits a hidden breakpoint into DebuggerManager, which should survive through all debugging sessions.
It looks like we have to revert http://hg.netbeans.org/main/rev/fed90c092c88, which was a part of fix of issue #145784 and fix the issue in a different way. Since hidden breakpoints are sometimes meant to survive multiple debugging sessions, we must not remove them all at the end of the debugging session.
Fixed in changeset: 102198:eee22cb751e2 http://hg.netbeans.org/main/rev/eee22cb751e2
Verified in NetBeans IDE Dev (Build 20080916174551) Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13 System: Windows XP version 5.1 Thank you for the quick turnaround.
Integrated into 'main-golden', will be available in build *200809170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/eee22cb751e2 User: mentlicher@netbeans.org Log: Issue #145784 fixed in a different way - debugger-specific breakpoints introduced via JPDABreakpoint.get/setSession(). This modification of the original fix fixes issue #147321.