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

wasm: output source maps #33503

Open
walkingeyerobot opened this issue Aug 6, 2019 · 3 comments

Comments

@walkingeyerobot
Copy link

commented Aug 6, 2019

What version of Go are you using (go version)?

$ go version
go version go1.12.5 linux/amd64

Output source maps for use with browser developer tools to enable simple step debugging inside browsers. Details of the spec can be found here: https://sourcemaps.info/spec.html

@dmitshur dmitshur changed the title wasm feature request: output source maps wasm: output source maps Aug 6, 2019

@dmitshur dmitshur added this to the Unplanned milestone Aug 6, 2019

@agnivade

This comment has been minimized.

Copy link
Member

commented Aug 7, 2019

If I am reading the link correctly, it is the spec for JS source maps. Wasm source maps are not part of a specification yet and it is still in progress. Discussion is ongoing here - WebAssembly/design#1051.

@walkingeyerobot

This comment has been minimized.

Copy link
Author

commented Aug 7, 2019

It's the spec for sourcemaps within browser dev tools, not specific to javascript. Emscripten is already capable of outputting these for c++ compiled to wasm. See their docs at https://emscripten.org/docs/porting/Debugging.html for more detail.

@agnivade

This comment has been minimized.

Copy link
Member

commented Aug 7, 2019

I see. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.