diff --git a/doc/api/cli.md b/doc/api/cli.md index 8346a262d9c433..8e44ed754bea59 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -346,15 +346,17 @@ Node options that are allowed are: - `--enable-fips` - `--force-fips` - `--icu-data-dir` +- `--debug-brk` +- `--debug-port` +- `--debug` +- `--napi-modules` - `--no-deprecation` - `--no-warnings` - `--openssl-config` -- `--prof-process` - `--redirect-warnings` - `--require`, `-r` - `--throw-deprecation` - `--trace-deprecation` -- `--trace-events-enabled` - `--trace-sync-io` - `--trace-warnings` - `--track-heap-objects` diff --git a/src/node.cc b/src/node.cc index c4f2a96c951d02..7cb4453ad2e8d8 100644 --- a/src/node.cc +++ b/src/node.cc @@ -3787,19 +3787,23 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env, static const char* whitelist[] = { // Node options - "-r", "--require", + "--require", "-r", + "--debug", + "--debug-brk", + "--debug-port", "--no-deprecation", + "--trace-deprecation", + "--throw-deprecation", "--no-warnings", + "--napi-modules", "--trace-warnings", "--redirect-warnings", - "--trace-deprecation", "--trace-sync-io", "--track-heap-objects", - "--throw-deprecation", "--zero-fill-buffers", "--v8-pool-size", - "--use-openssl-ca", "--use-bundled-ca", + "--use-openssl-ca", "--enable-fips", "--force-fips", "--openssl-config",