Dev : Tips : Enabling dump

From MozillaZine Knowledge Base
Revision as of 13:17, 4 October 2004 by Asqueella (talk | contribs) (update)
Jump to navigationJump to search

Viewing dump() output

You can use dump() statements instead of alert() to display 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 Mozilla (or Firefox or Thunderbird) with -console parameter (more information). You will now be able to see dump() output in the opened console window.

See also: Printing debug information to JavaScript Console.