Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit symbol map and ship with packages for easier debugging #68

Open
mglaman opened this issue Oct 24, 2024 · 1 comment
Open

Emit symbol map and ship with packages for easier debugging #68

mglaman opened this issue Oct 24, 2024 · 1 comment

Comments

@mglaman
Copy link

mglaman commented Oct 24, 2024

Emscripten has --emit-symbol-map which provides a symbol map. It makes debugging arbitrary errors like this easier. Shipping with the package avoids making custom builds:

TypeError: Cannot set properties of undefined (setting 'method')
 ❯ Object.1522466 node_modules/php-wasm/php-node.mjs:12:16885
 ❯ runEmAsmFunction node_modules/php-wasm/php-node.mjs:12:161702
 ❯ _emscripten_asm_const_int node_modules/php-wasm/php-node.mjs:12:161809
 ❯ null.<anonymous> wasm:/wasm/0321cf0a:1:6400638
 ❯ null.<anonymous> wasm:/wasm/0321cf0a:1:18784[57](https://git.drupalcode.org/issue/drupal_cms-3483001/-/jobs/3151382#L57)
 ❯ null.<anonymous> wasm:/wasm/0321cf0a:1:4894767
 ❯ null.<anonymous> wasm:/wasm/0321cf0a:1:8940680
 ❯ null.<anonymous> wasm:/wasm/0321cf0a:1:7036892
 ❯ null.<anonymous> wasm:/wasm/0321cf0a:1:3720996
 ❯ null.<anonymous> wasm:/wasm/0321cf0a:1:11427579
@seanmorris
Copy link
Owner

@mglaman I've got a branch with sourcemaps and symbols. I'll be pushing that out in a separate release-channel on NPM.

I'll post updates here as soon as that's out.

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

No branches or pull requests

2 participants