Skip to content

Conversation

osa1
Copy link
Member

@osa1 osa1 commented Aug 26, 2025

dart2wasm generates a source map file at the same location with the .wasm file. Serve it to help with debugging in the browser with --pause-after-load.

Note: somehow the source map file is not requested by the browser when testing with just test -p chrome -c dart2wasm (without --pause-after-load and manually adding breakpoints). I'm investigating why the source map isn't requested by default. When I run the same failing test with -c dart2js the source map is used.

dart2wasm generates a source map file at the same location with the
.wasm file. Serve it to help with debugging in the browser with
`--pause-after-load`.

Note: somehow the source map file is not requested by the browser when
testing with just `test -p chrome -c dart2wasm` (without
`--pause-after-load` and manually adding breakpoints). I'm investigating
why the source map isn't requested by default.
@osa1 osa1 requested a review from a team as a code owner August 26, 2025 10:33
Copy link

github-actions bot commented Aug 26, 2025

PR Health

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

@osa1
Copy link
Member Author

osa1 commented Aug 26, 2025

CI failure seems unrelated, #2529 also has the same failure.

Should I merge this?

@sigurdm
Copy link
Contributor

sigurdm commented Aug 26, 2025

Yeah, seems to be failing at main as well

Probably fine to merge

@osa1 osa1 merged commit 81e0579 into dart-lang:master Aug 26, 2025
99 of 101 checks passed
@osa1 osa1 deleted the dart2wasm_serve_source_map branch August 26, 2025 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants