Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd documentation line for host:port invocation #28405
Conversation
|
Welcome @sleekweasel and thanks for the pull request. This looks good to me once the hard-coded IP address is removed per one of @richardlau's suggestions. |
This comment has been minimized.
This comment has been minimized.
|
Argh, I can't believe I conflated localhost with the 192 network! It was a stressful, frustrating day. |
| @@ -164,7 +164,7 @@ function print(stream) { | |||
| options.set('--', { helpText: 'indicate the end of node options' }); | |||
| stream.write( | |||
| 'Usage: node [options] [ -e script | script.js | - ] [arguments]\n' + | |||
| ' node inspect script.js [arguments]\n\n' + | |||
| ' node inspect [script.js | -e "script" | <host>:<port>] …\n\n' + | |||
This comment has been minimized.
This comment has been minimized.
Trott
Jun 25, 2019
Member
This uses an ellipsis character (…) where everywhere else, we use three dots (...). On the one hand, the ellipsis is more correct. On the other hand, is there a situation where it will be an unprintable character because the terminal only accepts ASCII? Regardless, the code should probably pick one or the other and stick with it.
This comment has been minimized.
This comment has been minimized.
Trott
Jul 6, 2019
Member
Linter requires non-ASCII characters (to keep binary size down, believe it or not) so ... it must be.
Also, this should probably align with line 166 in that no " around script and -e comes before the script.js option.
Assuming you left the default checked state for the checkbox about allowing collaborators in this repo to push to your branch, I'll make these updates right now....
|
LGTM with or without the ellipsis comment being addressed. (It can be addressed in a later pull request if it doesn't get addressed in this one. Might even be a good first contribution for someone.) |
This comment has been minimized.
This comment has been minimized.
BridgeAR
added
author ready
lib / src
labels
Jul 4, 2019
This comment has been minimized.
This comment has been minimized.
|
The commit message should be updated either before landing or while landing and it should include the subsystem (Seems like |
This comment has been minimized.
This comment has been minimized.
|
I got rid of |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Landed in 7008d78 |
sleekweasel commentedJun 24, 2019
I just wasted a load of time not knowing how to invoke 'node inspect' with host:port to debug a process started with --inspect-port=0 because it didn't show up from a lot of Googling. Having it in the help text would have saved that.