On Aug 23, 9:13 am, Lautaro Dolberg <
lautaro.dolb...@gmail.com> wrote:
> Hi John:
>
> Maybe I dont understand the code behavior or I didn't explain well what I
> was looking for. In order to clarify my mind I will reformulate what I'm
> looking for.
>
> I'm looking for the piece of code in charge of listing or discovering all
> the variables declared in a script code block. I mean when I set a
> breakpoint in script panel and the debugger stops there I can see in the
> watch panel on the right all the variables that are declared there. I'm
> looking for the methods (probably is more than 1) that get that for every
> variable on the code get the name and the value if there is any value at
> that point of the execution flow.
Well this is what we have:
if (frame && frame.isValid)
{
var thisVar = unwrapIValue(frame.thisValue);
this.addMember(frame.scope, "user", members, "this",
thisVar, 0);
var scopeChain = this.generateScopeChain(frame.scope);
// locals, pre-expanded
members.push.apply(members, this.getMembers(scopeChain[0],
0, this.context));
for (var i = 1; i < scopeChain.length; i++)
this.addMember(scopeChain[i], "scopes", members,
scopeChain[i].toString(), scopeChain[i], 0);
}
I can explain what is going on here if it looks like this is what you
need. If not, then you need to say more.
jjb
>
> If the answer to my question was the previous mail, Sorry for the lameness
> and I will read the code more carefully than I did.
> Thanks.
> Lautaro.
>
> On Mon, Aug 23, 2010 at 5:20 PM, John J Barton
> <
johnjbar...@johnjbarton.com>wrote:
> > <
firebug%2Bunsu...@googlegroups.com<
firebug%252Buns...@googlegroups.com>