diff --git a/documentation/abnormal_termination/step1/using_exit_stack_traces.md b/documentation/abnormal_termination/step1/using_exit_stack_traces.md index 8ad1dfb..4a5ff53 100644 --- a/documentation/abnormal_termination/step1/using_exit_stack_traces.md +++ b/documentation/abnormal_termination/step1/using_exit_stack_traces.md @@ -1 +1,15 @@ -//TODO +# Using `--trace-exit` CLI Option + +`--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. + +## How To + +```bash +> node --trace-exit src/abnormal-exit.js +``` + +## Useful Links + +- https://nodejs.org/docs/latest/api/cli.html#cli_trace_exit