TraceKit.report.subscribe(function(stackInfo) { ... })
TraceKit.report.unsubscribe(function(stackInfo) { ... })
TraceKit.report(exception)
(e.g.try { ...code... } catch(ex) { TraceKit.report(ex); }
)
TraceKit will attempt to fetch an analyze source files, but you can turn this off using:
TraceKit.remoteFetching = false;