Tracing console helps Firefox extension developers to debug their extensions. It allows to display various logs created at runtime as well as inspect live JS objects passed into the logs.
Tracing Console is free and open source software distributed under the BSD License.
- Clone this repository in
<yourPath>
- Add a file named [email protected] in
<devProfileFolder>/extensions
only containing<yourPath>
- Run Firefox with your dev profile and that should be it.
Read More about Firefox profiles
Use the following code to get reference to the console:
Components.utils.import("resource://fbtrace/firebug-trace-service.js");
var FBTrace = traceConsoleService.getTracer(<your-extension-id>);
An example:
var FBTrace = traceConsoleService.getTracer("extensions.firebug");
- For Firebug 2: http://getfirebug.com/releases/fbtrace/2.0/
- For Firebug 3: http://getfirebug.com/releases/fbtrace/3.0/