-
Notifications
You must be signed in to change notification settings - Fork 311
Inspect the inspector
Chrome DevTools uses the CDP under the hood, if you plan to implement some DevTools features using chrome-remote-interface it may be useful to inspect the protocol messages exchanged between Chrome and DevTools:
-
Start headless Chrome:
google-chrome --remote-debugging-port=9222 --headless
-
Start regular Chrome and navigate to http://localhost:9222/devtools/inspector.html
-
Select "about:blank".
-
Optionally navigate to the page you want to use DevTools with using the URL box inside the page.
-
Open regular DevTools with F12.
-
In the network tab of the latter set the filter to WebSocket (WS) then reload the page.
-
Select the only WebSocket entry and select the "Messages" tab.
-
Interact with the former DevTools and inspect the WebSocket messages using the latter DevTools.