Bug 144977 - Make lexical scoping work well with the debugger
Summary: Make lexical scoping work well with the debugger
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Saam Barati
Depends on: 142944
  Show dependency treegraph
Reported: 2015-05-13 18:02 PDT by Saam Barati
Modified: 2017-01-18 23:39 PST (History)
10 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Saam Barati 2015-05-13 18:02:11 PDT
Currently, it looks like the debugger will evaluate code inside the function's scope, and not the currently executing lexical scope.
This can be seen when setting a breakpoint and executing code in the console.
Comment 1 Saam Barati 2015-08-04 12:06:26 PDT
This should probably be as simple as adding a new scope
type so we don't show let/const variables as "closure variables"
when they're really in the current call frame.