MozillaZine

Viewing dump() output

From MozillaZine Knowledge Base

(Difference between revisions)
Revision as of 02:09, 19 December 2004
Asqueella (Talk | contribs)
(move from Dev_:_Tips_:_Enabling_dump + edit)
<-- Previous diff
Revision as of 16:20, 24 January 2005
Asqueella (Talk | contribs)
(See also)
Next diff -->
Line 11: Line 11:
==See also== ==See also==
-*[[Dev : Extensions : Example Code : Printing to JSConsole | Printing debug information to JavaScript Console]].+*[[JavaScript Console|How to log debug information to JavaScript Console.]]
[[Category:Development]] [[Category:Development]]

Revision as of 16:20, 24 January 2005

This page is part of the extension development documentation project.

Ask your questions in MozillaZine Forums. Also try browsing example code.

Note: development documentation is in process of being moved to Mozilla Development Center (MDC).

Viewing dump() output

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

Then start Mozilla (Suite, Firefox or Thunderbird) with -console parameter (more information):

mozilla -console

You should now see dump() output in the opened console window.

See also