// onExceptionUnwind is not called for exceptions thrown and handled in the debugger. var g = newGlobal({newCompartment: true}); var dbg = Debugger(g);
g.log = '';
dbg.onDebuggerStatement = function (frame) { try { thrownew Error("oops");
} catch (exc) {
g.log += exc.message;
}
};
dbg.onExceptionUnwind = function (frame) {
g.log += 'BAD';
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.