Most of the APIs in the node libraries are asynchronous in design. When an exception is thrown in the callback, stacktrace only shows the call stack starting with process._tickCallback.
I wonder if there is a trick to show also the stack trace of the function, which trigerred _tickCallback.
source share