From 0c406a1d8992b89852c8249f657084f0ab40ec83 Mon Sep 17 00:00:00 2001 From: Franziska Hinkelmann Date: Thu, 29 Sep 2016 10:43:51 +0200 Subject: [PATCH] doc: add example for running with v8-inspector Add example to show what running Node.js with `--inspect` should look like. Some IDEs do not show the link when running with `--inspect`. This example hints to what the full output looks like. --- doc/api/debugger.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/api/debugger.md b/doc/api/debugger.md index dfe2f909732f69..9f7b352a1b5234 100644 --- a/doc/api/debugger.md +++ b/doc/api/debugger.md @@ -193,4 +193,12 @@ e.g. `--inspect=9222` will accept DevTools connections on port 9222. To break on the first line of the application code, provide the `--debug-brk` flag in addition to `--inspect`. +```txt +$ node --inspect index.js +Debugger listening on port 9229. +Warning: This is an experimental feature and could change at any time. +To start debugging, open the following URL in Chrome: + chrome-devtools://devtools/remote/serve_file/@60cd6e859b9f557d2312f5bf532f6aec5f284980/inspector.html?experiments=true&v8only=true&ws=localhost:9229/node +``` + [TCP-based protocol]: https://github.com/v8/v8/wiki/Debugging-Protocol