packages/chrome-devtools-patches/README.md
This package contains a Workers specific version of Chrome Devtools that is used by the Wrangler dev command and other applications. It is a customized fork of Chrome DevTools specifically tailored for debugging Cloudflare Workers. This package provides Worker-specific functionality through carefully maintained patches on top of Chrome DevTools.
This package is used across multiple Cloudflare products:
workers-playground)@cloudflare/quick-edit)InspectorProxyOur customized DevTools implementation provides:
We maintain this fork by applying patches on top of Chrome DevTools. These patches need to be periodically rebased as Chrome DevTools evolves.
Key Development Tasks:
We perform quarterly updates to stay current with upstream Chrome DevTools. The update process involves:
For detailed instructions on updating DevTools, please refer to our internal documentation on keeping devtools up-to-date.
Two methods are available for testing updates:
Local Development:
Preview Builds:
On any pull request to the repo on GitHub, you can add the preview:chrome-devtools-patches label to trigger a preview build of the DevTools frontend. This is useful because it will allow you to manually test your changes in a live environment, and with one-click.
Once the preview is built, you will see a comment on the PR with a link to the live URL.
Our DevTools implementation must maintain full functionality across:
When making changes:
Deployments are managed by GitHub Actions:
preview:chrome-devtools-patches label.main.