More than 10 lines in a node.js stack error?

Easiest solution for that is to start your code with following:

Error.stackTraceLimit = Infinity;

If you’d like to see stack trace that spans over setTimeout/setInterval calls, then more sophisticated https://github.com/mattinsler/longjohn would be the way to go.

Leave a Comment