Bug 21944 - Can't set a breakpoint on the statement after a single line "else"
Summary: Can't set a breakpoint on the statement after a single line "else"
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Timothy Hatcher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-28 23:29 PDT by Timothy Hatcher
Modified: 2008-10-29 08:02 PDT (History)
4 users (show)

See Also:


Attachments
Test (479 bytes, text/html)
2008-10-28 23:30 PDT, Timothy Hatcher
no flags Details
Proposed Patch (4.38 KB, patch)
2008-10-28 23:47 PDT, Timothy Hatcher
mjs: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Hatcher 2008-10-28 23:29:53 PDT
The line that calls test() is never hit.

if (false)
    debugger; // This should not be hit.
else
    test(); // Breakpoints on this line are not hit.
Comment 1 Timothy Hatcher 2008-10-28 23:30:23 PDT
Created attachment 24740 [details]
Test
Comment 2 Timothy Hatcher 2008-10-28 23:47:13 PDT
Created attachment 24741 [details]
Proposed Patch
Comment 3 Maciej Stachowiak 2008-10-28 23:48:40 PDT
Comment on attachment 24741 [details]
Proposed Patch

r=me
Comment 4 Cameron Zwarich (cpst) 2008-10-28 23:51:14 PDT
Comment on attachment 24741 [details]
Proposed Patch

r=me
Comment 5 Timothy Hatcher 2008-10-29 08:02:51 PDT
Landed in r37972.