summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/api/cli.md8
-rw-r--r--doc/node.14
-rw-r--r--src/node.cc3
3 files changed, 15 insertions, 0 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md
index 0c88eeca17..fd2c4d0bd1 100644
--- a/doc/api/cli.md
+++ b/doc/api/cli.md
@@ -178,6 +178,14 @@ added: v8.0.0
Enable loading native modules compiled with the ABI-stable Node.js API (N-API)
(experimental).
+## `--abort-on-uncaught-exception`
+<!-- YAML
+added: v0.10
+-->
+
+Aborting instead of exiting causes a core file to be generated for post-mortem
+analysis using a debugger (such as `lldb`, `gdb`, and `mdb`).
+
### `--trace-warnings`
<!-- YAML
added: v6.0.0
diff --git a/doc/node.1 b/doc/node.1
index af9069f134..ca142a2cab 100644
--- a/doc/node.1
+++ b/doc/node.1
@@ -136,6 +136,10 @@ Enable loading native modules compiled with the ABI-stable Node.js API (N-API)
(experimental).
.TP
+.BR \-\-abort\-on\-uncaught\-exception
+Aborting instead of exiting causes a core file to be generated for analysis.
+
+.TP
.BR \-\-trace\-warnings
Print stack traces for process warnings (including deprecations).
diff --git a/src/node.cc b/src/node.cc
index 3252a4adf0..1903303724 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -3645,6 +3645,9 @@ static void PrintHelp() {
" --pending-deprecation emit pending deprecation warnings\n"
" --no-warnings silence all process warnings\n"
" --napi-modules load N-API modules\n"
+ " --abort-on-uncaught-exception\n"
+ " aborting instead of exiting causes a\n"
+ " core file to be generated for analysis\n"
" --trace-warnings show stack traces on process warnings\n"
" --redirect-warnings=file\n"
" write warnings to file instead of\n"