tracable

Log the stack trace before a function was created.

npm install tracable
31 downloads in the last month

Tracable

Long stack traces without interfering with existing objects and functions. Just show the stack trace for before the function was created.

example:

var tracable = require('tracable');

var tracableFunction = tracable(function() {
  somethingThatMightError();
});

setTimeout(tracableFunction, 1000);

//... do other stuff until the tracable function executes
npm loves you