<path-to-firefox> -consoleEnter about:config in the address area. Right-click to make a new option. Like this:
browser.dom.window.dump.enabled = trueRestart Firefox Now your javaScript can do:
dump("Hello World\n");So I don't have to add the newline I use a function like this:
function debug(a) { dump(a + '\n'); }