Skip to content

Instantly share code, notes, and snippets.

@bgrins
Created August 8, 2016 22:14
Show Gist options
  • Save bgrins/288dd51aea381bb466fe9477ccc64118 to your computer and use it in GitHub Desktop.
Save bgrins/288dd51aea381bb466fe9477ccc64118 to your computer and use it in GitHub Desktop.
Browser console script to connect the debugger to the current page (non-e10s)
Cu.import("resource://gre/modules/jsdebugger.jsm");
addDebuggerToGlobal(this);
var dbg = new Debugger();
var DOwindow = dbg.addDebuggee(content.window);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment