Allo:
I just noticed the following thing, when I'm debugging dynamic code that is
run inside an eval() (I do that by setting a breakpoint at pc ==  0), It
seems that  frame's scope [JSDIValue] contains 0 properties.
Im trying to save the variable stack for every line executed of the dynamic
code.
So my code to get those variables is (inside  onExecute method
from jsd.breakpointHook )

*onBreakPointExecuted (frame, type, val) {*

* var listValue = {value: null}, lengthValue = {value: 0};*
* **frame.scope.getProperties(listValue, lengthValue);*
*... code ...*

*
*
*}*
*lengthValue.value is 0*
*
*
*The point is when I run that code for a normal breakpoint ( I mean a
breakpoint a declared function call) It works fine and It list all the
variables that the function uses.*
*So. Maybe I'm not looking at the right spot or maybe is not possible to get
that information from the code.*
*
*
*Thanks in advance.*
*Lautaro*

On Mon, Aug 30, 2010 at 5:47 PM, John J Barton
<[email protected]>wrote:

>
>
> On Aug 30, 7:03 am, Lautaro Dolberg <[email protected]> wrote:
> > Hello, I was looking for the same some weeks ago, so I decided to write a
> > tracer from scratch.
> > Im not sure if the way I did it was the best way, but I can share with
> you
> > my information sources.
> >
> > Basically there is a debug interface (it's mozilla code, not Firebug),
> that
> > you can use to intercept every script code that is executed (from the
> site
> > and from the browser)
> > Here is the definition of the debugger service.
> http://mxr.mozilla.org/mozilla1.9.2/source/js/jsd/idl/jsdIDebuggerSer...
> >
> > There is as well a Firebug service, wich is part of Firebug(it's no that
> > complicated to use it) so you can FB using this firebug plug in creator.
> http://www.phpied.com/firefox-firebug-extension-creator-wizard/
> > Firebug Service, that is defined here.
> https://developer.mozilla.org/en/FirebugInternals#Firebug_Service
>
> The newer version of that documentation is here:
>
> http://getfirebug.com/wiki/index.php/Firebug_Internals
>
> jjb
>
> --
> You received this message because you are subscribed to the Google Groups
> "Firebug" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<firebug%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/firebug?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en.

Reply via email to