diff --git a/doc/api/cli.md b/doc/api/cli.md index ed2a0f1b1ce9a5..cbff194e87c99e 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -747,6 +747,18 @@ added: v12.2.0 Prints TLS packet trace information to `stderr`. This can be used to debug TLS connection problems. +### `--trace-uncaught` + + +Print stack traces for uncaught exceptions; usually, the stack trace associated +with the creation of an `Error` is printed, whereas this makes Node.js also +print the stack trace associated with throwing the value (which does not need +to be an `Error` instance). + +Enabling this option may affect garbage collection behavior negatively. + ### `--trace-warnings`