Bug 69879 - Web Inspector: [JSC] Breakpoint not hit if code is called from debug console
Summary: Web Inspector: [JSC] Breakpoint not hit if code is called from debug console
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: Nobody
URL: data:text/html,<script>function x() {...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2011-10-11 16:08 PDT by Jon Honeycutt
Modified: 2014-12-13 18:39 PST (History)
16 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Honeycutt 2011-10-11 16:08:58 PDT
A JS breakpoint set in the inspector will not be hit if the code is called from the debug console.

To reproduce:
1. Open the above URL
2. Inspect the page
3. Go to the Scripts panel, and select the script "button%3E" from the drop-down
4. Put a breakpoint on line 1
5. Go back to the browser, and click the button in the page. Note that the breakpoint is hit.
6. Open the debug console, and run x()

The function is called and returns 0, which prints to the console, but the breakpoint is not hit.
Comment 1 Jon Honeycutt 2011-10-11 16:12:15 PDT
<rdar://problem/10269504>
Comment 2 Vsevolod Vlasov 2011-10-17 14:23:09 PDT
I can not reproduce that on chromium ToT.
Is it Safari specific or are you using an older version?
Comment 3 Jon Honeycutt 2011-10-17 14:36:05 PDT
I cannot reproduce in Chrome either. Seems to be Safari-specific.