Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Source maps and stack traces

Enabling source maps in Cloudflare Workers via Wrangler configuration to translate minified or transpiled stack traces back to original source code for debugging.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Source maps and stack traces

Enabling source maps in Cloudflare Workers via Wrangler configuration to translate minified or transpiled stack traces back to original source code for debugging.

When To Use

Use when you need to configure Wrangler to upload source maps so that unhandled exceptions in production show original source code lines instead of minified code in stack traces.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-observability-maps-and-stack-traces-workflow-guide.mdDocumentation explaining how to use source maps to map stack traces back to original source code in Cloudflare Workers.Questions about documentation explaining how to use source maps to map stack traces back to original source code in Cloudflare Workers.
examples/workers-observability-maps-and-stack-traces-cloudflare-workers-sourcemap.textA configuration snippet demonstrating how to enable source maps in a Cloudflare Workers project using the uploadsourcemaps property.Exact payloads, commands, or snippets shown in A configuration snippet demonstrating how to enable source maps in a Cloudflare Workers project using the uploadsourc...
examples/workers-observability-maps-and-stack-traces-cloudflare-workers-maps-uplo.textA text configuration snippet demonstrating how to enable source map uploads using the upload_source_maps flag.Exact payloads, commands, or snippets shown in A text configuration snippet demonstrating how to enable source map uploads using the uploadsourcemaps flag.

What This Skill Covers

  • Stack traces ↗ help with debugging your code when your application encounters an unhandled exception. Stack traces show you the specific functions that were...
  • Main sections: Source Maps, Stack traces, Limits, Example, 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/source-maps