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 147321 - Breakpoint in web application scriptlet code does not persist
Summary: Breakpoint in web application scriptlet code does not persist
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2008-09-16 01:20 UTC by _ krystyna
Modified: 2008-09-17 05:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ krystyna 2008-09-16 01:20:16 UTC
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.
Comment 1 Martin Entlicher 2008-09-16 11:45:15 UTC
Reproduced.
I doubt this is a bug of debuggercore.
Comment 2 Martin Entlicher 2008-09-16 12:04:40 UTC
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.
Comment 3 Martin Entlicher 2008-09-16 12:33:00 UTC
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.
Comment 4 Martin Entlicher 2008-09-16 14:16:00 UTC
Fixed in changeset:   102198:eee22cb751e2
http://hg.netbeans.org/main/rev/eee22cb751e2
Comment 5 _ krystyna 2008-09-17 00:35:44 UTC
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.
Comment 6 Quality Engineering 2008-09-17 05:45:01 UTC
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.