Skip to content

Instantly share code, notes, and snippets.

@past
Created October 15, 2012 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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