summaryrefslogtreecommitdiff
path: root/doc/api/debugger.md
diff options
context:
space:
mode:
authorGauthamBanasandra <gautham.bangalore@gmail.com>2018-06-18 17:44:19 +0530
committerMatheus Marchini <matheus@sthima.com>2018-06-28 09:24:02 -0300
commit026d279acae0c11d9767f6f5a7b57a945257e53c (patch)
tree1c30779fe6a6123e85557cd0f85ccb325746860a /doc/api/debugger.md
parent3d04e6c9a5522b6391a4a914ca16f2337abb35e7 (diff)
downloadandroid-node-v8-026d279acae0c11d9767f6f5a7b57a945257e53c.tar.gz
android-node-v8-026d279acae0c11d9767f6f5a7b57a945257e53c.tar.bz2
android-node-v8-026d279acae0c11d9767f6f5a7b57a945257e53c.zip
inspector: use js_app.html as the landing page for chrome devtools
As of this commit in chromium - https://chromium-review.googlesource.com/c/chromium/src/+/905450 a new landing page (js_app.html) has been added and inspector.html has been made as the fallback page. Another motivation for this patch is the following bug in chromium - https://bugs.chromium.org/p/chromium/issues/detail?id=846642 due to which, source maps won't get applied with inspector.html, but works with js_app.html In order to maintain compatibility, this patch adds a URL "devtoolsFrontendUrlCompat" to the response of /json/list REST API so that those using Chrome browsers older than 66.0.3345.0 could use this to open DevTools. PR-URL: https://github.com/nodejs/node/pull/21385 Refs: https://bugs.chromium.org/p/chromium/issues/detail?id=846642 Refs: https://chromium-review.googlesource.com/c/chromium/src/+/905450 Reviewed-By: Aleksei Koziatinskii <ak239spb@gmail.com> Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: Matheus Marchini <matheus@sthima.com>
Diffstat (limited to 'doc/api/debugger.md')
-rw-r--r--doc/api/debugger.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/api/debugger.md b/doc/api/debugger.md
index e7e39e5634..5a5e1cd7c7 100644
--- a/doc/api/debugger.md
+++ b/doc/api/debugger.md
@@ -187,12 +187,15 @@ flag instead of `--inspect`.
$ node --inspect index.js
Debugger listening on 127.0.0.1:9229.
To start debugging, open the following URL in Chrome:
- chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:9229/dc9010dd-f8b8-4ac5-a510-c1a114ec7d29
+ chrome-devtools://devtools/bundled/js_app.html?experiments=true&v8only=true&ws=127.0.0.1:9229/dc9010dd-f8b8-4ac5-a510-c1a114ec7d29
```
(In the example above, the UUID dc9010dd-f8b8-4ac5-a510-c1a114ec7d29
at the end of the URL is generated on the fly, it varies in different
debugging sessions.)
+If the Chrome browser is older than 66.0.3345.0,
+use `inspector.html` instead of `js_app.html` in the above URL.
+
[Chrome DevTools Protocol]: https://chromedevtools.github.io/devtools-protocol/
[V8 Inspector]: #debugger_v8_inspector_integration_for_node_js