Skip to content

Instantly share code, notes, and snippets.

@jorendorff
Created March 21, 2012 16:27
Show Gist options
  • Save jorendorff/2149289 to your computer and use it in GitHub Desktop.
Save jorendorff/2149289 to your computer and use it in GitHub Desktop.
// Run this
// in Scratchpad
// in the *target* Firefox
// using Environment -> Browser
// before opening the script debugger in the other Firefox.
Components.utils.import("resource://gre/modules/devtools/dbg-server.jsm");
function allowDebuggersToConnect() {
const DEBUGGER_PORT = 60000;
if (!DebuggerServer.initialized) {
DebuggerServer.init();
DebuggerServer.addBrowserActors();
}
DebuggerServer.openListener(DEBUGGER_PORT, false);
}
allowDebuggersToConnect();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment