diff --git a/doc/api/cli.md b/doc/api/cli.md index 4cb33a157a7230..0b232b5a797d45 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -785,6 +785,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`