Skip to content
This repository has been archived by the owner on Jan 15, 2020. It is now read-only.

Latest commit

 

History

History
20 lines (14 loc) · 437 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 437 Bytes

Tracable

Show long stack traces without interfering with existing objects and functions.

For a given function somethingThatMightError, show the node stack trace before somethingThatMightError is called.

example:

var tracable = require('tracable');

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

setTimeout(tracableFunction, 1000);

//... do other stuff until the tracable function executes