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.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-observability-maps-and-stack-traces-workflow-guide.md | Documentation 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.text | A 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.text | A 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
- 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/source-maps
