Does anyone know how to print a stack trace in nodejs?
A:
http://github.com/emwendelin/javascript-stacktrace This looks promising.
Sijin
2010-05-27 19:24:46
+4
A:
Any Error
object has a stack
member that traps the point at which it was constructed.
var stack = new Error().stack
require("sys").puts( stack )
isaacs
2010-05-28 20:45:02
or just `sys.puts(new Error().stack)` (after adding the system module)
sirhc
2010-08-09 04:48:52