为什么带有 chrome-devtools:// 的 url 不能打开开发工具?
Why doesn't a url with chrome-devtools:// open the devtools?
我有一个nodejs服务器运行 --inspect
当我在(docker 端口)http://10.0.3.6:4080/json/list 查看元信息时,我得到以下信息:
// 20200821141205
// http://10.0.3.6:4080/json/list
[
{
"description": "node.js instance",
"devtoolsFrontendUrl": "chrome-devtools://devtools/bundled/js_app.html?experiments=true&v8only=true&ws=10.0.3.6:4080/15d3e459-3f00-442f-b442-a35cea47d811",
"devtoolsFrontendUrlCompat": "chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=10.0.3.6:4080/15d3e459-3f00-442f-b442-a35cea47d811",
"faviconUrl": "https://nodejs.org/static/images/favicons/favicon.ico",
"id": "15d3e459-3f00-442f-b442-a35cea47d811",
"title": "src/server.ts",
"type": "node",
"url": "file:///app/src/server.ts",
"webSocketDebuggerUrl": "ws://10.0.3.6:4080/15d3e459-3f00-442f-b442-a35cea47d811"
}
]
我希望打开 devToolsFrontendUrl
会打开 chrome devtools 页面。它改为尝试执行 google 查询:
Your search - chrome-devtools://devtools/bundled/js_app.html?experiments=true&v8only=true&ws=10.0 ... - did not match any documents.
如何 chrome 在 Devtools Node Inspector 中加载 devtoolsFrontendUrl?
看起来 chrome 和节点项目都将它们的协议名称从 chrome-devtools
更新为 devtools
从节点 10 更新到节点 14 给了我以下结果...
// 20200821150718
// http://10.0.3.6:4080/json
[
{
"description": "node.js instance",
"devtoolsFrontendUrl": "devtools://devtools/bundled/js_app.html?experiments=true&v8only=true&ws=10.0.3.6:4080/50b21fd5-04d4-407a-8e1e-cb1937e0419b",
"devtoolsFrontendUrlCompat": "devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=10.0.3.6:4080/50b21fd5-04d4-407a-8e1e-cb1937e0419b",
"faviconUrl": "https://nodejs.org/static/images/favicons/favicon.ico",
"id": "50b21fd5-04d4-407a-8e1e-cb1937e0419b",
"title": "src/server.ts",
"type": "node",
"url": "file:///app/src/server.ts",
"webSocketDebuggerUrl": "ws://10.0.3.6:4080/50b21fd5-04d4-407a-8e1e-cb1937e0419b"
}
]
我有一个nodejs服务器运行 --inspect
当我在(docker 端口)http://10.0.3.6:4080/json/list 查看元信息时,我得到以下信息:
// 20200821141205
// http://10.0.3.6:4080/json/list
[
{
"description": "node.js instance",
"devtoolsFrontendUrl": "chrome-devtools://devtools/bundled/js_app.html?experiments=true&v8only=true&ws=10.0.3.6:4080/15d3e459-3f00-442f-b442-a35cea47d811",
"devtoolsFrontendUrlCompat": "chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=10.0.3.6:4080/15d3e459-3f00-442f-b442-a35cea47d811",
"faviconUrl": "https://nodejs.org/static/images/favicons/favicon.ico",
"id": "15d3e459-3f00-442f-b442-a35cea47d811",
"title": "src/server.ts",
"type": "node",
"url": "file:///app/src/server.ts",
"webSocketDebuggerUrl": "ws://10.0.3.6:4080/15d3e459-3f00-442f-b442-a35cea47d811"
}
]
我希望打开 devToolsFrontendUrl
会打开 chrome devtools 页面。它改为尝试执行 google 查询:
Your search - chrome-devtools://devtools/bundled/js_app.html?experiments=true&v8only=true&ws=10.0 ... - did not match any documents.
如何 chrome 在 Devtools Node Inspector 中加载 devtoolsFrontendUrl?
看起来 chrome 和节点项目都将它们的协议名称从 chrome-devtools
更新为 devtools
从节点 10 更新到节点 14 给了我以下结果...
// 20200821150718
// http://10.0.3.6:4080/json
[
{
"description": "node.js instance",
"devtoolsFrontendUrl": "devtools://devtools/bundled/js_app.html?experiments=true&v8only=true&ws=10.0.3.6:4080/50b21fd5-04d4-407a-8e1e-cb1937e0419b",
"devtoolsFrontendUrlCompat": "devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=10.0.3.6:4080/50b21fd5-04d4-407a-8e1e-cb1937e0419b",
"faviconUrl": "https://nodejs.org/static/images/favicons/favicon.ico",
"id": "50b21fd5-04d4-407a-8e1e-cb1937e0419b",
"title": "src/server.ts",
"type": "node",
"url": "file:///app/src/server.ts",
"webSocketDebuggerUrl": "ws://10.0.3.6:4080/50b21fd5-04d4-407a-8e1e-cb1937e0419b"
}
]