Created
March 21, 2012 16:27
-
-
Save jorendorff/2149289 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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