chrome 浏览器远程控制与调试(一)

chrome 浏览器远程控制与调试(一)
远程调试启动:

chromium-browser  --remote-debugging-port=9222 --user-data-dir='~/code/chrome-test'

命令:

http://localhost:9222/json/protocol #获取协议
http://localhost:9222/json/version #获取版本
http://localhost:9222/json/list #或者 http://localhost:9222/json 获取可用网页tab
http://localhost:9222/json/new?{url}
http://localhost:9222/json/activate/{targetId}
http://localhost:9222/json/close/{targetId}
http://localhost:9222/devtools/page/{targetId}
http://localhost:9222/devtools/inspector.html #

chrome控制端口

chrome://flags/
chrome://inspect/#devices

Chrome DevTools — JS调试

https://segmentfault.com/a/1190000008396389

你可能感兴趣的:(web_html,chrome)