Here's a simple Hello World actor. It is a global actor (not associated with a given browser tab).
let protocol = require("devtools/server/protocol");
let {method, Arg, Option, RetVal} = protocol;
/** | |
* Run this scratchpad in a chrome context to enable the | |
* remote debugging server manually. | |
*/ | |
Components.utils.import("resource://gre/modules/devtools/dbg-server.jsm"); | |
if (!DebuggerServer.initialized) { | |
DebuggerServer.init(); | |
DebuggerServer.addBrowserActors(); | |
} |
The Web Console was the first new developer tool added to Firefox 4, and the team has continued improving it in each release since. With Firefox 24 entering beta, we thought it would be a good time to highlight the features available in the Web Console and introduce its new cousin, the Browser Console.
The Browser Console replaces the venerable Error Console. To open it, hit the familiar Ctrl+Shift+J key-binding ( Command+Shift+J on OS X ):