--trace-exit
CLI option will print a stack trace on every proactive process.exit
invocation. It is convenient to confirm if the abnormal exit of the process was
initiated from an invocation of process.exit
or something other crashes.
> node --trace-exit src/abnormal-exit.js