Skip to content

Commit b054c98

Browse files
committed
doc: add abnormal termination step 1
Confirming if the process was exited for proactive invocation of `process.exit`.
1 parent 644ed33 commit b054c98

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1-
//TODO
1+
# 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

Comments
 (0)