跳至正文
Wener Notes

DevTool Protocol

约 1 分钟阅读
bash
chrome --headless --remote-debugging-port=9222 --disable-infobars --disable-dev-shm-usage --no-sandbox --user-data-dir=$PWD/chrome --profile-directory=Default --remote-allow-origins='*'

curl http://localhost:9222/json
curl http://localhost:9222/session
json
[
  {
    "description": "",
    "devtoolsFrontendUrl": "/devtools/inspector.html?ws=127.0.0.1:53430/devtools/page/<ID>",
    "id": "<ID>",
    "title": "New Tab",
    "type": "page",
    "url": "chrome://newtab/",
    "webSocketDebuggerUrl": "ws://127.0.0.1:53430/devtools/page/<ID>"
  }
]

关联信息

反向链接、本文链接的其他页面和外部资料。

参考资料

其他外链1 条
最近更新commit f6f5925编辑