javascript closure scope chain- how to see the variables bound to the scope chain?
<p>Javascript functions are objects and they have scope chain associated with them.
If some closure exists with a function that has a different scope chain than the one that was in effect when they were defined.As an example invoking function is a returned function object from some other (parent) function that had a scope chain with a large number of private variables,
so invoking function will use the already existing inherited scope chain of parent function as well as bounded old variables.</p>

<p>Is there any way to check the variables associated with the scope chain without looking into the parent function?</p>

<p>Ideally one has to keep track of defined variables in the parent function, my question is without lookup of the parent function, can we see the variables associated with scope chain?</p>

<p>If yes (any method?) can we check the current value of variables associated with scope chain?</p>

<p>Also can someone give the structure of scope chain( at least i know its not like CPU stack like strucuture but something else?).</p>
