DevTools
Last updated Jun 25, 2026
Using DevTools
When running your Worker locally using the Wrangler CLI ↗︎ (wrangler dev) or using Vite ↗︎ with the Cloudflare Vite plugin ↗︎, you automatically have access to Cloudflare's implementation ↗︎ of Chrome DevTools ↗︎.
You can use Chrome DevTools to:
- View logs directly in the Chrome console
- Debug code by setting breakpoints
- Profile CPU usage
- Observe memory usage and debug memory leaks in your code that can cause out-of-memory (OOM) errors
Opening DevTools
Wrangler
- Run your Worker locally, by running
wrangler dev - Press the
Dkey from your terminal to open DevTools in a browser tab
Vite
- Run your Worker locally by running
vite - In a new Chrome tab, open the debug URL that shows in your console (for example,
http://localhost:5173/__debug)
Dashboard editor & playground
Both the Cloudflare dashboard ↗︎ and the Worker's Playground ↗︎ include DevTools in the UI.
Related resources
- Local development - Develop your Workers and connected resources locally via Wrangler and workerd, for a fast, accurate feedback loop.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/workers/observability/dev-tools/#page","headline":"DevTools","description":"Use Chrome DevTools to debug, profile, and inspect Cloudflare Workers locally.","url":"https://developers.cloudflare.com/workers/observability/dev-tools/","inLanguage":"en","image":"https://developers.cloudflare.com/workers/observability/dev-tools/og.png?v=159773ecea58bf99","dateModified":"2026-06-25","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Debug your local and deployed Workers using breakpoints. title: Breakpoints image: https://developers.cloudflare.com/workers/observability/dev-tools/breakpoints/og.png?v=0be4a89432d27e88
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/workers/llms.txt
Use this file to discover all available pages before exploring further.
Docs