Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Attaching a Debugger

Instructions for attaching a Node.js debugger to Miniflare using Visual Studio Code, WebStorm, or browser DevTools to set breakpoints and inspect code execution.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Attaching a Debugger

Instructions for attaching a Node.js debugger to Miniflare using Visual Studio Code, WebStorm, or browser DevTools to set breakpoints and inspect code execution.

When To Use

Use when you need to set breakpoints, watch variables, or inspect the call stack while running Cloudflare Workers locally via Miniflare.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-testing-miniflare-attaching-a-debugger-workflow-guide.mdA guide detailing how to attach debuggers like Visual Studio Code, WebStorm, and DevTools to Miniflare for breakpoint debugging.Questions about a guide detailing how to attach debuggers like Visual Studio Code, WebStorm, and DevTools to Miniflare for breakpoint...
examples/workers-testing-miniflare-attaching-a-debugger-cloudflare-workers-minifl.textA VS Code launch configuration for attaching a debugger to a Miniflare instance.Exact payloads, commands, or snippets shown in A VS Code launch configuration for attaching a debugger to a Miniflare instance.

What This Skill Covers

  • This documentation describes breakpoint debugging when using Miniflare directly, which is only relevant for advanced use cases. Instead, most users should re...
  • Main sections: Visual Studio Code, Create configuration, WebStorm, DevTools.

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/testing/miniflare/developing/debugger/index.md