1.0.0 • Published 10 years ago
console-dot-trace v1.0.0
node-console-dot-trace
A polyfill for the console.trace function you may be used to in the browser.
Install
npm install --save-dev console-dot-traceUsage
All you have to do is require the module and execute it. It will make console.trace available in your application.
require('console-dot-trace')();Use anywhere in your application as:
console.trace();You can also name stack traces:
console.trace('descriptive stack name');Prefer not to modify the native console object?
var trace = require('console-dot-trace').trace;
trace('descriptive stack name');More info
For more information on using console.trace, see the Console API in the Chrome Developer Reference.
If you need more advances or programmatic stack parsing, see node-stack-trace.