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
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Sep 8, 2025
Revisions updated by `dart tools/rev_sdk_deps.dart`.

test (https://github.com/dart-lang/test/compare/5aef971..b99d556):
  b99d556  2025-09-01  dependabot[bot]  Bump the github-actions group across 1 directory with 3 updates (dart-lang/test#2534)
  abe4939b  2025-08-27  Nate Bosch  Remove executable argument forwarding in tests (dart-lang/test#2533)
  81e0579c  2025-08-26  Ömer Sinan Ağacan  Serve dart2wasm source map files (dart-lang/test#2532)
  9354f239  2025-08-07  Liam Appelbe  Add `--coverage-path` and `--branch-coverage` options (dart-lang/test#2517)

Change-Id: I7297cc534d03de343218c829a8e94d70ba35a023
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/448423
Auto-Submit: Devon Carew <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Sep 10, 2025
This reverts commit caece5d.

Reason for revert: broke Flutter build (dart-lang/test#2517 (comment))

Original change's description:
> [deps] rev test
>
> Revisions updated by `dart tools/rev_sdk_deps.dart`.
>
> test (https://github.com/dart-lang/test/compare/5aef971..b99d556):
>   b99d556  2025-09-01  dependabot[bot]  Bump the github-actions group across 1 directory with 3 updates (dart-lang/test#2534)
>   abe4939b  2025-08-27  Nate Bosch  Remove executable argument forwarding in tests (dart-lang/test#2533)
>   81e0579c  2025-08-26  Ömer Sinan Ağacan  Serve dart2wasm source map files (dart-lang/test#2532)
>   9354f239  2025-08-07  Liam Appelbe  Add `--coverage-path` and `--branch-coverage` options (dart-lang/test#2517)
>
> Change-Id: I7297cc534d03de343218c829a8e94d70ba35a023
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/448423
> Auto-Submit: Devon Carew <[email protected]>
> Reviewed-by: Konstantin Shcheglov <[email protected]>
> Commit-Queue: Konstantin Shcheglov <[email protected]>

Change-Id: I5404155f0de9330d37ff74741dd64a1a8d0436d2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/448906
Reviewed-by: Alexander Aprelev <[email protected]>
Bot-Commit: Rubber Stamper <[email protected]>
Commit-Queue: Alexander Markov <[email protected]>
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