We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 644ed33 commit b054c98Copy full SHA for b054c98
documentation/abnormal_termination/step1/using_exit_stack_traces.md
@@ -1 +1,15 @@
1
-//TODO
+# Using `--trace-exit` CLI Option
2
+
3
+`--trace-exit` CLI option will print a stack trace on every proactive `process.exit`
4
+invocation. It is convenient to confirm if the abnormal exit of the process was
5
+initiated from an invocation of `process.exit` or something other crashes.
6
7
+## How To
8
9
+```bash
10
+> node --trace-exit src/abnormal-exit.js
11
+```
12
13
+## Useful Links
14
15
+- https://nodejs.org/docs/latest/api/cli.html#cli_trace_exit
0 commit comments