Skip to content

Latest commit

 

History

History
 
 

devtools

Chrome Debugging Protocol

We keep multiple versions of the protocol in the tree in order to allow us to generate bindings as needed.

They are typically downloaded from the devtools source

Fortunately both Chrome and Edge are based off Chromium releases and those are OSS. In order to get the versions of the protocol spoken by particular releases of Chrome:

  • Find out the latest release version of stable Chrome (as I write this it's 84.0.4147.125).
  • Navigate to the Chromium source
  • Open the tag matching the release number.
  • Grab //third_party/blink/public/devtools_protocol/browser_protocol.pdl
  • Now figure out the version of v8 used by the version of Chromium. In Chromium's source, navigate to //:DEPS and search for v8_revision
  • Head over to the v8 source and switch to the indicated revision (as I write this it's 451d38b60be0a0f692b11815289cf8cbc9b1dc98)
  • Grab //include:js_protocol.pdl

You may also find the same information at the OmahaProxy CSV Viewer

We have a modified form of the scripts used by Chromium to generate the protocol files. The originals were in:

https://github.com/chromium/chromium/blob/master/third_party/inspector_protocol/convert_protocol_to_json.py