devtools-source-maps

Installation
SKILL.md

Utilizing Source Maps & Structured Stack Traces in DevTools

This skill guides you on how to correctly map runtime coordinates to original source locations and render structured stack traces or symbolized errors in the DevTools frontend.


1. Primary Rules

  1. Never parse raw error stacks manually: Do not split on newlines or use homebrew regex to parse stack traces. Use DebuggerWorkspaceBinding helpers to structurally parse and translate stack traces.
  2. Dispose of subscriptions: Models like SymbolizedError subscribe to live locations. Always call .dispose() when the consumer (e.g., a widget or list) is destroyed to avoid memory leaks.
  3. Prefer pre-built widgets: Instead of manually formatting or rendering call frames, use StackTracePreviewContent for raw stacks, and SymbolizedErrorWidget for complete errors.
Installs
2
GitHub Stars
4.1K
First Seen
Nov 6, 2026