Allows you to stop a script at predefined breakpoints, inspect variables etc.. A walkthrough explains its use.
- strict code checking
Allows you to print text on the native console. Use
\nto output a newline at the end. To see anything, you need to set the pref "browser.dom.window.dump.enabled" to true, e.g. in <about:config>; and to have a native console at all under MS Windows, you need to start Mozilla via
mozilla.exe -console. Using normal JS object inspection, you can write a function that dumps a whole object, similar to this ddumpObject().
- Call stack
You can print the current call stack (which functions were called to reach the current point) using the keyword
debugger. You can also try using Components.stack, which presumably only works in Mozilla from chrome (not webpages).