DebugLogger is an extension for developer's debug console that is a cleaner alternative to using dump.
An extension developer's debug console that is a cleaner alternative to using dump(). It breaks up debug message to be unique per extension or project and let's you view them independently in a clean console.
Start by putting debug statments within your extension using this API, like below:
1: logMngr = Components.classes["@mozmonkey.com/debuglogger/manager;1"] .getService(Components.interfaces.nsIDebugLoggerManager);
2: logger = logMngr.registerLogger("myapp"); 3: logger.log(3, "Hello World");
· Firefox 1.0 - 2.0.0.* ALL
In order to prevent errors when somebody runs your extension without the debug logger installed, you should construct a custom wrapper function that will envoke the logger. This way it can be turned off from a single source between development and production.
When a user reports a problem with your extension, you can have them install the DebugLogger so they can provide you with important debugging data to save you lot's of time.