Project Description

JsTrace makes it easier for JavaScript developers to debug the various areas and modules in their JavaScript code by allowing module-level "switches" to set various levels of debugging output

It's written in pure JavaScript


It's pretty easy to use..

Output Diagnostics

var tracer = new Trace('ModuleName');'Testing Tracer', object1, object2);

Flipping Switches

Trace.traceLevel('ModuleName', Trace.Levels.debug);

For More Details, go to the Documentation

The internals of the code are based on the 'ba-debug' project by Ben Alman, which can be found here:

For a bit more info, check out my original blog post about this:

Last edited Feb 25, 2012 at 8:40 PM by tommck, version 5