diff options
author | Franziska Hinkelmann <franzih@chromium.org> | 2016-09-29 10:43:51 +0200 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2016-09-30 08:39:50 -0700 |
commit | bdb801261a8323a5a684398b60e6b9ca470c72a8 (patch) | |
tree | fd953165c0725eed5eb93c08ace3fe020f09be77 /doc/api/debugger.md | |
parent | 3e7da1d7a24d766d3ea36cc8cb8bb4e478176c68 (diff) | |
download | android-node-v8-bdb801261a8323a5a684398b60e6b9ca470c72a8.tar.gz android-node-v8-bdb801261a8323a5a684398b60e6b9ca470c72a8.tar.bz2 android-node-v8-bdb801261a8323a5a684398b60e6b9ca470c72a8.zip |
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.
PR-URL: https://github.com/nodejs/node/pull/8845
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Diffstat (limited to 'doc/api/debugger.md')
-rw-r--r-- | doc/api/debugger.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/api/debugger.md b/doc/api/debugger.md index dfe2f90973..9f7b352a1b 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 |