Programming Tips - Old - How can I make Firefox output to a console?

Date: 2007sep12 Keywords: debug, log Product: Firefox Warning: You don't usually do this anymore Q. How can I make Firefox output to a console? A. Start Firefox with:
<path-to-firefox> -console
Enter about:config in the address area. Right-click to make a new option. Like this:
browser.dom.window.dump.enabled = true
Restart 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'); }