Skip to content

Commit

Permalink
doc: node inspect port 0 description when help is printed
Browse files Browse the repository at this point in the history
this is not clearly documented anywhere and is an incredibly
helpful tool for CLI debugging.
  • Loading branch information
iloveitaly committed Jul 27, 2023
1 parent 4a26e2d commit 8b1f056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/debugger/inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ function startInspect(argv = ArrayPrototypeSlice(process.argv, 2),

process.stderr.write(`Usage: ${invokedAs} script.js\n` +
` ${invokedAs} <host>:<port>\n` +
` ${invokedAs} --port=<port>\n` +
` ${invokedAs} --port=<port> Use 0 for random port assignment\n` +
` ${invokedAs} -p <pid>\n`);
process.exit(kInvalidCommandLineArgument);
}
Expand Down

0 comments on commit 8b1f056

Please sign in to comment.