Files
node/doc/api
Joyee Cheung bdc57135fd debugger: add --help to node inspect and improve docs
- Add `--help` / `-h` to `node inspect` covering both interactive and
  non-interactive probe modes. The help text is printed when
  `--help`/`-h` appears before any positional argument to avoid
  hijacking `--help` passed to a child script.
- Improve the documentation of probe mode and add examples, explain
  same-location probe coalescing, TDZ caveat for let/const bindings,
  basename matching and exit code behavior. Also move it to a
  section parallel to interactive mode. Remove recommendation of
  evaluating structured expressions as that is prone to missing
  info in JSON mode.

Drive-by: When probe mode exits due to invalid arguments, exit with
`kInvalidCommandLineArgument` (9) instead of `kGenericUserError` (1).

Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/63201
Reviewed-By: Jan Martin <jan.krems@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Aviv Keller <me@aviv.sh>
2026-05-19 14:08:20 +02:00
..
2026-05-07 00:58:03 +02:00
2026-05-19 14:08:16 +02:00
2024-11-01 03:43:53 +00:00
2026-05-07 00:58:03 +02:00
2025-11-08 17:09:29 +00:00
2025-12-16 20:31:28 +00:00
2026-05-07 00:58:03 +02:00
2026-02-09 15:32:50 +00:00
2025-07-15 17:18:42 +00:00
2026-05-19 14:08:19 +02:00
2025-06-09 23:45:29 +02:00
2025-07-15 17:18:42 +00:00
2026-05-07 00:58:03 +02:00