Dev : Tips : Enabling dump: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
No edit summary
 
m (link to Dev_:_Tips_:_Printing_to_JSConsole)
Line 5: Line 5:


Then start Firefox up with 'firefox.exe -console' command. You will now be able to see dump() output in the opened console window.
Then start Firefox up with 'firefox.exe -console' command. You will now be able to see dump() output in the opened console window.
See also: [[Dev_:_Tips_:_Printing_to_JSConsole]]

Revision as of 23:59, 13 August 2004

Viewing dump() output

You can use dump() statements instead of alert() to display some debug information for your extension. In order to view the dump() output, go to about:config, add new boolean pref 'browser.dom.window.dump.enabled' and set its value to 'true'.

Then start Firefox up with 'firefox.exe -console' command. You will now be able to see dump() output in the opened console window.

See also: Dev_:_Tips_:_Printing_to_JSConsole