JSDBGAPI Hookup: Difference between revisions

Jump to navigation Jump to search
m
Added bug link.
m (Added bug link.)
Line 24: Line 24:
* Single stepping may be affected by the changes to SetInterrupt, but this is unclear. A proposed enhancement to the existing JSDBGAPI is to have trap functions return a value JSTRAP_STEP, which would cause a "trap" to be recompiled in for every opcode, and JSTRAP_CONTINUE to undo this transformation.
* Single stepping may be affected by the changes to SetInterrupt, but this is unclear. A proposed enhancement to the existing JSDBGAPI is to have trap functions return a value JSTRAP_STEP, which would cause a "trap" to be recompiled in for every opcode, and JSTRAP_CONTINUE to undo this transformation.
* JSD may also need to expose some API to enable or disable debug mode. This should probably be accomplished by sending an event to the main event loop which will then do the actual toggling. This is necessary as it is not safe to change debug mode state while there are live JS frames on the stack. It may also be possible to hide this from consumers in existing function calls.
* JSD may also need to expose some API to enable or disable debug mode. This should probably be accomplished by sending an event to the main event loop which will then do the actual toggling. This is necessary as it is not safe to change debug mode state while there are live JS frames on the stack. It may also be possible to hide this from consumers in existing function calls.
== Current work ==
* [https://bugzilla.mozilla.org/show_bug.cgi?id=563000 JaegerDebug Metabug]
Confirmed users
9

edits

Navigation menu