Bug 144977

Summary: Make lexical scoping work well with the debugger
Product: WebKit Reporter: Saam Barati <saam>
Component: JavaScriptCoreAssignee: Saam Barati <saam>
Status: NEW    
Severity: Normal CC: bburg, benjamin, fpizlo, ggaren, joepeck, jonowells, mark.lam, mmirman, msaboff, oliver
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 142944    
Bug Blocks:    

Saam Barati
Reported 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.
Attachments
Saam Barati
Comment 1 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.
Note You need to log in before you can comment on or make changes to this bug.