Standard JS debugging API
zwetan
zwetan at gmail.com
Sun Apr 29 18:15:35 PDT 2007
On 4/28/07, Erik Arvidsson <erik.arvidsson at gmail.com> wrote:
> I'm just forwarding this from an internal company mailing list:
>
> Short version:
> JS/ECMA should have a standard interface that JS-VM writers can
> implement, so that third-party tool-vendors can write debuggers that
> will work for any browser (or other JS-VM host) that supports this
> debugging interface. This would create a market for debugger
> products, and would make web development much more attractive than it
> is today.
>
>[snip...]
I think that if every ES4 implementation use Tamarin(avmplus) to run
ES4/AS3 bytecode,
then this is already covered no ?
here a sample ouptut from tamarin running the builtins (global.abc) in
debug trace mode
-----------------------------
D:\sources\opensource\Tamarin\sandbox>avmplus_sd -Dastrace 4 global.abc
33 AVMINF: MTHD global$init ()
35 AVMINF: MTHD Object$cinit ()
36 AVMINF: MTHD Class$cinit ()
38 AVMINF: MTHD Function$/Function::emptyCtor () @ 0x03CD0000
41 AVMINF: MTHD Function$cinit ()
41 AVMINF: MTHD Class/get prototype () @ 0x03CD0120
43 AVMINF: MTHD Class/get prototype () @ 0x03CD0120
46 AVMINF: MTHD Class/get prototype () @ 0x03CD0120
48 AVMINF: MTHD Class/get prototype () @ 0x03CD0120
50 AVMINF: MTHD Class/get prototype () @ 0x03CD0120
53 AVMINF: MTHD Object$/Object::_dontEnumPrototype (Function-35) @ 0x03CD0160
57 AVMINF: MTHD Object$/Object::_setPropertyIsEnumerable () @ 0x03CD0380
60 AVMINF: MTHD Object$/Object::_setPropertyIsEnumerable () @ 0x03CD0380
64 AVMINF: MTHD Object$/Object::_setPropertyIsEnumerable () @ 0x03CD0380
67 AVMINF: MTHD Object$/Object::_setPropertyIsEnumerable () @ 0x03CD0380
71 AVMINF: MTHD Function$/Function::emptyCtor () @ 0x03CD0000
74 AVMINF: MTHD builtin.as$0::MethodClosure$cinit ()
etc...
-----------------------------
If Adobe indeed release the Flex SDK as open source, then having
access to FDB (Flex Debugger) source would allow also to have an ES4
debugger or build your own.
But maybe I'm overlooking what can be done and/or what you're after.
cheers,
zwetan
More information about the Es4-discuss
mailing list