我有一台nodejs服务器正在运行--inspect
当我在(对接端口) 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?
发布于 2020-08-22 03:09:22
看起来chrome和node项目都将他们的协议名从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"
}
]https://stackoverflow.com/questions/63528094
复制相似问题