1 2 3 4 5
var g = newGlobal(); var dbg = new Debugger(g); dbg.onDebuggerStatement = (frame) => { frame.eval("c = 42;"); }; g.evalReturningScope("'use strict'; debugger;");