cloudflare · Cloudflare Workers Docs
Workers Debugging
Methods for debugging Cloudflare Workers during local development using either the built-in browser-based DevTools via a /debug route or configuring VS Code with a launch.json file for breakpoint debugging.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Debugging
Methods for debugging Cloudflare Workers during local development using either the built-in browser-based DevTools via a /debug route or configuring VS Code with a launch.json file for breakpoint debugging.
When To Use
Use when you need to set up breakpoint debugging in VS Code or access Chrome DevTools for Workers running via the Vite plugin during local development.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-vite-plugin-debugging-workflow-guide.md | A guide explaining how to debug Cloudflare Workers using DevTools and VS Code with the Vite plugin. | Questions about a guide explaining how to debug Cloudflare Workers using DevTools and VS Code with the Vite plugin. |
examples/workers-vite-plugin-debugging-cloudflare-workers-vite-plugin-vscode-laun.text | A VS Code launch configuration JSON object for attaching a debugger to a Cloudflare Workers project using the Vite plugin. | Exact payloads, commands, or snippets shown in A VS Code launch configuration JSON object for attaching a debugger to a Cloudflare Workers project using the Vite pl... |
What This Skill Covers
- The Cloudflare Vite plugin has debugging enabled by default and listens on port 9229. You may choose a custom port or disable debugging by setting the inspec...
- Main sections:
DevTools,VS Code.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/vite-plugin/reference/debugging
