cloudflare · Cloudflare Workers Docs
Workers Breakpoints
How to debug Cloudflare Workers locally or remotely using breakpoints via VS Code JavaScript Debug Terminals or launch.json configurations.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Breakpoints
How to debug Cloudflare Workers locally or remotely using breakpoints via VS Code JavaScript Debug Terminals or launch.json configurations.
When To Use
Use when you need to pause Worker execution at specific lines of code to inspect variables and state during local or remote development in VS Code.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-observability-dev-tools-breakpoints-workflow-guide.md | A guide on configuring VS Code launch.json files to enable breakpoint debugging for Cloudflare Workers developed locally with Wrangler or Vite. | Questions about a guide on configuring VS Code launch.json files to enable breakpoint debugging for Cloudflare Workers developed loca... |
examples/workers-observability-dev-tools-breakpoints-cloudflare-workers-vscode-de.text | A VS Code launch configuration JSON object for attaching a debugger to a Cloudflare Workers process via Wrangler. | Exact payloads, commands, or snippets shown in A VS Code launch configuration JSON object for attaching a debugger to a Cloudflare Workers process via Wrangler. |
What This Skill Covers
- When developing a Worker locally using Wrangler or Vite, you can debug via breakpoints in your Worker. Breakpoints provide the ability to review what is happ...
- Main sections:
Debug via breakpoints,VSCode debug terminals,Setup VS Code to use breakpoints with launch.json files,Related resources.
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/observability/dev-tools/breakpoints
