Skip to content

feat(dwarf): bridge source maps to debug sources - #132

Merged
zackees merged 5 commits into
mainfrom
feat/dwarf-stack-trace-bridge
Jun 1, 2026
Merged

zackees merged 5 commits into
mainfrom
feat/dwarf-stack-trace-bridge

Conversation

@zackees

@zackees zackees commented Jun 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Refs #130, #129, #85.

This PR lands the fastled-wasm side of the browser DWARF/source bridge:

  • generates debug-mode -ffile-prefix-map flags for sketch, FastLED, and emsdk roots using the [dwarf] prefixes from build_flags.toml
  • keeps debug source maps enabled, copies fastled.wasm.map / fastled.js.map into fastled_js/, and removes stale maps when a later build does not produce them
  • writes fastled_js/dwarf-roots.json after successful builds and lets --serve-dir rehydrate the guarded debug source resolver from it
  • serves source-map URLs such as sketchsource/Blink.ino, FastLED prefix-map paths, emsdk paths, and browser-normalized variants through the existing /dwarfsource resolver
  • adds a Linux x86 DWARF smoke workflow that builds debug Blink and verifies embedded wasm/source-map paths round-trip through /dwarfsource
  • updates emscripten archive install handling for direct href manifests and restores executable bits after extraction

Notes

This pairs with FastLED/FastLED#2675, which landed the FastLED-side wasm prefix-map support. I am not closing #130 from the PR alone; final issue closure still needs the browser null-deref acceptance check against the merged code.

Test plan

  • soldr cargo test -p fastled-cli debug_symbols
  • soldr cargo test -p fastled-cli wasm_build
  • soldr cargo test -p fastled-cli server
  • soldr cargo test -p fastled-cli
  • soldr --no-cache cargo test -p fastled-cli install::tests
  • bash lint
  • bash test
  • local hidden smoke: fastled --internal-dwarf-smoke --debug --no-interactive ./Blink resolved 136 embedded source paths via /dwarfsource
  • PR feat(dwarf): bridge source maps to debug sources #132 CI: all matrix checks passed, including Linux x86 DWARF Smoke

@zackees
zackees merged commit 11cdf0f into main Jun 1, 2026
25 checks passed
@zackees
zackees deleted the feat/dwarf-stack-trace-bridge branch June 1, 2026 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant