Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

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

  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/vite-plugin/reference/debugging