diff options
author | Gibson Fahnestock <gibfahn@gmail.com> | 2017-03-28 16:54:30 +0100 |
---|---|---|
committer | Gibson Fahnestock <gibfahn@gmail.com> | 2017-04-04 10:26:00 +0100 |
commit | 2d2970e3cbed0decb5cb64a6a8238c5e89ccfe3a (patch) | |
tree | 459935015cd3b08b4bb6a81449e6e303df2ddb53 /doc | |
parent | d51f4f31be2c36f5fb8a8ca8e17597178313d1ae (diff) | |
download | node-new-2d2970e3cbed0decb5cb64a6a8238c5e89ccfe3a.tar.gz |
doc, inspector: note that the host is optional
Document that `node --inspect=${port}` is also a viable option.
PR-URL: https://github.com/nodejs/node/pull/12149
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/cli.md | 4 | ||||
-rw-r--r-- | doc/node.1 | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md index 5f5e577895..8e5915d5f9 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -94,7 +94,7 @@ Follows `require()`'s module resolution rules. `module` may be either a path to a file, or a node module name. -### `--inspect[=host:port]` +### `--inspect[=[host:]port]` <!-- YAML added: v6.3.0 --> @@ -106,7 +106,7 @@ and profile Node.js instances. The tools attach to Node.js instances via a tcp port and communicate using the [Chrome Debugging Protocol][]. -### `--inspect-brk[=host:port]` +### `--inspect-brk[=[host:]port]` <!-- YAML added: v7.6.0 --> diff --git a/doc/node.1 b/doc/node.1 index 0905b1f944..e4d46b792e 100644 --- a/doc/node.1 +++ b/doc/node.1 @@ -93,14 +93,14 @@ Preload the specified module at startup. Follows `require()`'s module resolution rules. \fImodule\fR may be either a path to a file, or a node module name. .TP -.BR \-\-inspect \fI[=host:port]\fR +.BR \-\-inspect \fI[=[host:]port]\fR Activate inspector on host:port. Default is 127.0.0.1:9229. V8 Inspector integration allows attaching Chrome DevTools and IDEs to Node.js instances for debugging and profiling. It uses the Chrome Debugging Protocol. .TP -.BR \-\-inspect-brk \fI[=host:port]\fR +.BR \-\-inspect-brk \fI[=[host:]port]\fR Activate inspector on host:port and break at start of user script. .TP |