1 2 3 4 5
var g = newGlobal({newCompartment: true}); var dbg = new Debugger(g); try { g.eval('function drag(ev) {'); } catch (ex) { } for (s of dbg.findScripts()) s.lineCount;