Viewing dump() output: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
Line 11: Line 11:


==See also==
==See also==
*[[JavaScript Console|How to log debug information to JavaScript Console.]]
*[[JavaScript Console#Logging custom messages in JavaScript Console|How to log debug information to JavaScript Console.]]


[[Category:Development]]
[[Category:Development]]

Revision as of 16:02, 16 May 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