Browse Source
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>
v6
Gibson Fahnestock
8 years ago
No known key found for this signature in database
GPG Key ID: B01FBB92821C587A
3 changed files with
7 additions and
6 deletions
doc/api/cli.md
doc/node.1
src/node.cc
@ -94,7 +94,7 @@ Follows `require()`'s module resolution
rules. `module` may be either a path to a file, or a node module name.
rules. `module` may be either a path to a file, or a node module name.
### `--inspect[=host:port]`
### `--inspect[=[ host:] port]`
<!-- YAML
<!-- YAML
added: v6.3.0
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][].
tcp port and communicate using the [Chrome Debugging Protocol][].
### `--inspect-brk[=host:port]`
### `--inspect-brk[=[ host:] port]`
<!-- YAML
<!-- YAML
added: v7.6.0
added: v7.6.0
-->
-->
@ -93,14 +93,14 @@ Preload the specified module at startup. Follows `require()`'s module resolution
rules. \fI module\fR may be either a path to a file, or a node module name.
rules. \fI module\fR may be either a path to a file, or a node module name.
.TP
.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.
Activate inspector on host:port. Default is 127.0.0.1:9229.
V8 Inspector integration allows attaching Chrome DevTools and IDEs to Node.js
V8 Inspector integration allows attaching Chrome DevTools and IDEs to Node.js
instances for debugging and profiling. It uses the Chrome Debugging Protocol.
instances for debugging and profiling. It uses the Chrome Debugging Protocol.
.TP
.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.
Activate inspector on host:port and break at start of user script.
.TP
.TP
@ -3541,9 +3541,10 @@ static void PrintHelp() {
" -r, --require module to preload (option can be "
" -r, --require module to preload (option can be "
" repeated) \n "
" repeated) \n "
# if HAVE_INSPECTOR
# if HAVE_INSPECTOR
" --inspect[=host:port] activate inspector on host:port \n "
" --inspect[=[ host:] port] activate inspector on host:port \n "
" (default: 127.0.0.1:9229) \n "
" (default: 127.0.0.1:9229) \n "
" --inspect-brk[=host:port] activate inspector on host:port \n "
" --inspect-brk[=[host:]port] \n "
" activate inspector on host:port \n "
" and break at start of user script \n "
" and break at start of user script \n "
# endif
# endif
" --no-deprecation silence deprecation warnings \n "
" --no-deprecation silence deprecation warnings \n "