Install Firebug in Firefox. From there, you can press the DOM and see all the declared javascript variables. There is also an arrow that allows you to specify the source of the variables that you would like to see, such as "only user properties", etc. Etc. Hope this helps you. (You can also console.log
the window
object as it contains everything)
.... EDIT .... After Josh's comments, I decided to take a look if any browser provided the opportunity to really see all the memory at the moment, and the Chrome developer tools do exactly what you want. Just run the developer tool - click on โProfilesโ, then click on the โeyeโ icon in the lower left corner and you will get a whole collection of all the things that are currently in memory (including items in the closure). Hope this helps, your question helped me :)
source share