debugger: add --help to node inspect and improve docs#63201
Open
joyeecheung wants to merge 1 commit intonodejs:mainfrom
Open
debugger: add --help to node inspect and improve docs#63201joyeecheung wants to merge 1 commit intonodejs:mainfrom
node inspect and improve docs#63201joyeecheung wants to merge 1 commit intonodejs:mainfrom
Conversation
- 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>
joyeecheung
commented
May 8, 2026
| Pressing `enter` without typing a command will repeat the previous debugger | ||
| command. | ||
|
|
||
| ### Watchers |
Member
Author
There was a problem hiding this comment.
This looks a bit weird in the diff, apparently if you move a block and then add one more level of # to the headings, git would recognize it as a new block. The content below are copied verbatim from the original block below probe mode docs (which was misplaced, this should've followed interactive mode docs, hence this PR moved it back).
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #63201 +/- ##
========================================
Coverage 90.03% 90.03%
========================================
Files 713 713
Lines 224699 224995 +296
Branches 42473 42533 +60
========================================
+ Hits 202310 202580 +270
- Misses 14179 14186 +7
- Partials 8210 8229 +19
🚀 New features to boost your workflow:
|
hybrist
approved these changes
May 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
--help/-htonode inspectcovering both interactive and non-interactive probe modes. The help text is printed when--help/-happears before any positional argument to avoid hijacking--helppassed to a child script.Drive-by: when probe mode exits due to invalid arguments, exit with
kInvalidCommandLineArgument(9) instead ofkGenericUserError(1).