blob: 06cc33300a26e713d607c048c9d015bd1a280e62 (
plain)
1
2
3
4
5
6
7
|
var g = newGlobal({newCompartment: true});
var dbg = new Debugger();
var gw = dbg.addDebuggee(g);
dbg.onDebuggerStatement = function (f) {
gw.executeInGlobal("eval('var x = \"A Brief History of Love\"');\n")
};
g.eval('debugger');
|