Viewing dump() output: Difference between revisions
m (→See also) |
|||
Line 7: | Line 7: | ||
Then start Mozilla (Suite, Firefox or Thunderbird) with '''-console''' parameter ([http://www.mozilla.org/docs/command-line-args.html more information]): | Then start Mozilla (Suite, Firefox or Thunderbird) with '''-console''' parameter ([http://www.mozilla.org/docs/command-line-args.html more information]): | ||
mozilla -console | mozilla -console | ||
'''Note:''' you must have all mozilla instances closed before running the command, if not the console will not appear. | |||
You should now see <tt>dump()</tt> output in the opened console window. | You should now see <tt>dump()</tt> output in the opened console window. |
Revision as of 20:23, 14 August 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
Note: you must have all mozilla instances closed before running the command, if not the console will not appear.
You should now see dump() output in the opened console window.