Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorlegendecas <legendecas@gmail.com>2019-11-17 15:02:01 +0300
committerMyles Borins <mylesborins@google.com>2019-12-18 02:21:12 +0300
commitd8ce9a0e234660d268f60fb55b156aebfaf29310 (patch)
treeb34d2b4ac4f2089f28c36d0ba2dcca9493853c87 /doc/api
parent510edead69d2ea3288ee7e76e352d937cd997c30 (diff)
cli: add --trace-exit cli option
It could be convenient to trace abnormal exit of the Node.js processes that printing stacktrace on each `process.exit` call with a cli option. This also takes effects on worker threads. PR-URL: https://github.com/nodejs/node/pull/30516 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/cli.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md
index 3e7ccc1133c..37065087e17 100644
--- a/doc/api/cli.md
+++ b/doc/api/cli.md
@@ -784,6 +784,14 @@ added: v7.7.0
Enables the collection of trace event tracing information.
+### `--trace-exit`
+<!-- YAML
+added: REPLACEME
+-->
+
+Prints a stack trace whenever an environment is exited proactively,
+i.e. invoking `process.exit()`.
+
### `--trace-sync-io`
<!-- YAML
added: v2.1.0
@@ -1112,6 +1120,7 @@ Node.js options that are allowed are:
* `--trace-event-categories`
* `--trace-event-file-pattern`
* `--trace-events-enabled`
+* `--trace-exit`
* `--trace-sync-io`
* `--trace-tls`
* `--trace-uncaught`