Skip to content

Instantly share code, notes, and snippets.

@past
Created October 15, 2012 16:35
Show Gist options
  • Save past/3893467 to your computer and use it in GitHub Desktop.
Save past/3893467 to your computer and use it in GitHub Desktop.
var dbg = new Debugger();
for (var g of dbg.findAllGlobals())
try {
dbg.addDebuggee(g);
} catch (e) {
dump("ignoring the debugger's compartment\n");
}
for (var s of dbg.findScripts())
dump(s.url+"\n");
dump("Done.\n");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment