Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-observability-dev-tools-breakpoints-workflow-guide.mdA 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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