Source code

Revision control

Copy as Markdown

Other Tools

// Adding a debuggee in a compartment that is already in debug mode works
// even if a script from that compartment is on the stack.
var g = newGlobal({newCompartment: true});
var dbg1 = Debugger(g);
var dbg2 = Debugger();
g.parent = this;
g.eval("parent.dbg2.addDebuggee(this);");