Re: JSD: Stepping by line

Adam Peller <[email protected]>
Newsgroups gmane.comp.mozilla.devel.jsdebugger
Message-ID <[email protected]>
James Ross <silver <at> warwickcompsoc.co.uk> writes:
> >For example, would you be able to make use of internal states for stack
> > frame changes rather than compare line numbers, etc.?
>
> I don't believe pushing the stepping logic down will improve its 
> reliability, as SpiderMonkey only operates on the compiled instructions, 
> anything that wants to use lines will still need that PC -> line 
> conversion and comparison.

I think on each step we're also doing string comparisons against the function
name?  This is not an exact science, since function names are often null, as is
the case in many JS toolkits today where anonymous functions and closures are
used.  If you've got a bunch of anonymous functions in the stack, comparing
their names is of no value, so I wonder how accurate the stepping can be?  Same
can be said for recursion?  This is one place where I was wondering if having JS
Engine state could help us follow the stack.

-Adam
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.