**Deliverable 5 of #49.** Emit source maps so debuggers step `.twasm` source, not wasm bytes. ## Scope - Map emitted instruction byte-offsets → `.twasm` source spans. - Choose the format: DWARF-in-wasm vs. the wasm sourcemap custom section (`sourceMappingURL`). Record the choice (ADR if it becomes load-bearing). - Note: DWARF emission is also the seed of Phase 4 debugger integration (#52) — pick a format that doesn't paint that into a corner. ## Acceptance - A debugger (or `wasm-tools` / browser devtools) shows `.twasm` line/column for `examples/01-single-module.twasm`. - The map is validated against the emitted offsets in a test. ## Dependencies - Blocked by **F** (codegen v0). Extends per-example with **D1**. **Deliverable:** Phase 1 / deliverable 5 (`docs/PRODUCTION-PATH.adoc` §Phase 1). Part of #49.
Deliverable 5 of #49. Emit source maps so debuggers step
.twasmsource, not wasm bytes.Scope
.twasmsource spans.sourceMappingURL). Record the choice (ADR if it becomes load-bearing).Acceptance
wasm-tools/ browser devtools) shows.twasmline/column forexamples/01-single-module.twasm.Dependencies
Deliverable: Phase 1 / deliverable 5 (
docs/PRODUCTION-PATH.adoc§Phase 1). Part of #49.