Does anyone know how to print a stack trace in Node.js?
Any Error object has a stack member that traps the point at which it was constructed.
Error
stack
var stack = new Error().stack console.log( stack )
or more simply:
console.trace("Here I am!")
1.4m articles
1.4m replys
5 comments
57.0k users