From 0c00b655d8007fd484b0f20323a701d91d4650c3 Mon Sep 17 00:00:00 2001 From: Noj Vek Date: Wed, 15 Mar 2017 19:34:51 -0700 Subject: [PATCH] Fix #7065: cli help documentation for --inspect Adding documentation to node.1 and cli.md PR-URL: https://github.com/nodejs/node/pull/11660 Reviewed-By: Eugene Ostroukhov Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- doc/api/cli.md | 21 +++++++++++++++++++++ doc/node.1 | 11 +++++++++++ 2 files changed, 32 insertions(+) diff --git a/doc/api/cli.md b/doc/api/cli.md index 89879cdc532937..d5d4c4d6188c36 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -94,6 +94,26 @@ Follows `require()`'s module resolution rules. `module` may be either a path to a file, or a node module name. +### `--inspect[=host:port]` + + +Activate inspector on host:port. Default is 127.0.0.1:9229. + +V8 inspector integration allows tools such as Chrome DevTools and IDEs to debug +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]` + + +Activate inspector on host:port and break at start of user script. + + ### `--no-deprecation`