Skip to content

Commit

Permalink
doc: add abnormal termination step 1
Browse files Browse the repository at this point in the history
Confirming if the process was exited for proactive invocation of `process.exit`.
  • Loading branch information
legendecas committed Dec 15, 2019
1 parent 644ed33 commit 63da600
Showing 1 changed file with 15 additions and 1 deletion.
@@ -1 +1,15 @@
//TODO
# Using `--trace-exit` CLI Option

`--trace-exit` CLI option would 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

0 comments on commit 63da600

Please sign in to comment.