The Simplest Way to Get Access to Vars in a Particular Scope
- Open Developer Tools > Resources (in Chrome)
- Open file with a function that has access to that scope (tip cmd/ctrl+p to find file)
- Set breakpoint inside that function and run your code
- When it stops at your breakpoint, you can access the scope var through console (or scope var window)
Note: You want to do this against un-minified js.
The Simplest Way to Show All Non-Private Vars
- Open Console (in Chrome)
- Type: this.window
- Hit Enter
Now you will see an object tree you can expand with all declared objects.