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