diff --git a/doc/api/cli.md b/doc/api/cli.md index e47d315019c87b..7769b0219417b4 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -748,6 +748,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`