diff --git a/doc/api/cli.md b/doc/api/cli.md index 2052f010f4b..563e97fcef3 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -3323,6 +3323,19 @@ added: Prints a stack trace whenever an environment is exited proactively, i.e. invoking `process.exit()`. +### `--trace-promises` + + + +Prints a stack trace to stderr whenever a promise is created or resolved. Each +promise is given an identifier, and the identifier of the parent promise is +also printed when the promise is derived from another one. Promise `before` and +`after` hook events are not traced, to reduce the amount of output. + ### `--trace-require-module=mode`