on-internet
← Community

Programmatically accessing [[Scopes]] (closure variables) through Chrome DevTools API or panel? (Not at breakpoint)

Stack Overflow ·

In 2014, it was not possible for JS code to access variables inside a closure from outside the closure. Since then, Chrome's internals have changed to use [[Scopes]] instead of Closure. Is it now (2018) possible for Chrome DevTools to read [[Scopes]] programmatically? If so, is there an existing DevTools extension that does so? Use case: inspecting variables inside a UMD module loaded using RequireJS. I know I can do this at a breakpoint or debugger statement using the Scopes panel, but would like to be able to do so even when I am not at a breakpoint. Edit As of 2017, it was not possible to a

Comments

Sign in or sign up to comment and upvote.

No comments yet.