Trace

Examples

const crypto = require('crypto'); const fs = require('fs'); fs.readFile(__filename, function () { crypto.randomBytes(256, function () { process.nextTick(function () { throw new Error('custom error'); }); }); }); $ node --stack_trace_limit=100 -r trace -r clarify wired.js /trace/showcases/basic.js:7 throw new Error('custom error'); ^ Error: custom error at /trace/showcases/basic.js:7:13 at InternalFieldObject.ondone (/trace/showcases/basic.js:6:13) at /trace/showcases/basic.js:5:10 at Object.<anonymous> (/trace/showcases/basic.js:4:4)