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 152596 - Firefox: bp not hit on second debug if previous session finished on bp
Summary: Firefox: bp not hit on second debug if previous session finished on bp
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Quy Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-07 01:18 UTC by _ krystyna
Modified: 2009-02-19 20:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
test file (478 bytes, text/html)
2008-11-07 01:19 UTC, _ krystyna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ krystyna 2008-11-07 01:18:02 UTC
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
Comment 1 _ krystyna 2008-11-07 01:19:24 UTC
Created attachment 73406 [details]
test file
Comment 2 Quy Nguyen 2008-11-07 01:52:33 UTC
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.
Comment 3 Quy Nguyen 2008-11-11 21:12:07 UTC
Fixed in trunk.  The debugger is correctly shut down when the session is killed, instead of suspending on the next
debugger keyword.

Changeset: 522b43a7ae9e
Comment 4 Quality Engineering 2008-11-12 04:58:19 UTC
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