Viewing dump() output

From MozillaZine Knowledge Base

(Difference between revisions)

Asqueella (Talk | contribs)
(move from Dev_:_Tips_:_Enabling_dump + edit)
Next diff -->

Revision as of 02:09, 19 December 2004

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