Re: JSD: Stepping by line
"Gijs Kruitbosch (\"Hannibal\")" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.jsdebugger |
|---|---|
| Message-ID | <[email protected]> |
James Ross wrote: > Currently, JSD gets called (InterruptHook) from SpiderMonkey for each > instruction executed in SpiderMonkey's compiled bytecode. That's not > going to change, but what people have shown concern about is that JSD > calls into its registered interrupt hook (usually JS) for each of these. > > People claim that costs time. > > It is interesting because it isn't just a trivial fix; Venkman, for > example, actually has two quite unlinked ways of counting lines (normal, > and pretty print [PP]). Of course, since PP is a specific feature of > JSD's exposed interfaces, one possibility to help is to give JSD a new > 3-way setting: > - oldskool (call for each instruction in SpiderMonkey) > - by line, normal (call/unique line by the normal PC->line map) > - by line, PP (call/unique line by the PP PC->line map) > > Thoughts? > It sounds like a plan to me, but then again, I don't know much about JSD - yet, or so I hope. You seem to be stressing that 'people claim' it costs time. Do you believe differently yourself? (I'm just being curious here; my own assumption would be that it does cost time, but as said I don't know JSD) -- Gijs