Bug 97002 - Web Inspector: console execution context is confusing when debugger is on a breakpoint
Summary: Web Inspector: console execution context is confusing when debugger is on a b...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 116924
  Show dependency treegraph
 
Reported: 2012-09-18 05:07 PDT by Andrey Kosyakov
Modified: 2016-12-13 15:38 PST (History)
12 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Kosyakov 2012-09-18 05:07:24 PDT
When paused on a breakpoint, inspector always evaluates console expressions in the context of selected call frame. When the breakpoint is in a subframe, this means the global object will be that of subframe. This may be confusing, given that we display "top frame" in the console evaluation context (and the debugger panel indicating a breakpoint may be off the screen, so user does not realize he's on a breakpoint).
I suggest that when paused, we display something like "<call frame>" as an option in the execution context selection combo box of the console, and let one change it to override the execution context to that of different global object (i.e. a different frame or world).
Comment 1 Radar WebKit Bug Importer 2014-08-03 18:50:13 PDT
<rdar://problem/17898320>