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

Add Source Maps support #6

Closed
Horcrux7 opened this issue Mar 23, 2019 · 0 comments
Closed

Add Source Maps support #6

Horcrux7 opened this issue Mar 23, 2019 · 0 comments

Comments

@Horcrux7
Copy link
Member

To debug a Wasm module it can be helpful to see the original source code.

There is a feature request in the spec WebAssembly/design#1051

For a source map there must be custom section "sourceMappingURL" with the URL to the map.
This URL can relative if the wasm is load with WebAssembly.compileStreaming/instantiateStreaming. In the other case it relative to the baseURL of the web page. The URL can also be a data URI. Then it is inlined.

Currently Firefox support already displaying the source map.

There is a sample: https://github.com/yurydelendik/wasm-source-map-emscripten

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

1 participant