Skip to content

Enable dwarf debugging#49

Merged
WorldSEnder merged 15 commits into
mainfrom
dwarf-debugging
Jul 13, 2026
Merged

Enable dwarf debugging#49
WorldSEnder merged 15 commits into
mainfrom
dwarf-debugging

Conversation

@WorldSEnder

@WorldSEnder WorldSEnder commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Closes #7

@WorldSEnder

Copy link
Copy Markdown
Owner Author

@mat813 If you have the time, do you mind checking this branch out to see if the debug information survives in your use case? ref to leptos-rs/cargo-leptos#585

@WorldSEnder

WorldSEnder commented Jul 8, 2026

Copy link
Copy Markdown
Owner Author

From a quick benchmarking perspective, this seems to be a hit on processing time. In debug builds, times go from 10ms to 100ms for the integration modules. This might be connected to the additional verification (validate_info and validate_line_progs in emit/dwarf.rs) done under testing conditions though and not reflect the user experience.

@WorldSEnder

Copy link
Copy Markdown
Owner Author

Known limitation: wasm-opt is currently not able to deal with the generated dwarf correctly. I have not investigated deeper. Either --strip-debug --strip-dwarf or don't run wasm-opt, e.g. with wasm-opt = false in wasm-pack.

@WorldSEnder
WorldSEnder merged commit f1349ae into main Jul 13, 2026
5 checks passed
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.

Support debug sections

1 participant