-
Notifications
You must be signed in to change notification settings - Fork 51
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
Is it possible to produce wasm with debug information? #123
Comments
HI @monkbai! The closest you could get is using:
Would this set-up work for you? |
Thank you @carlopi for answering. The asmjs code compiled with "-g" option is still hard to understand. Also, we prefer to compile wasm code for better performance. So sorry, this setup does not work. Do you have any plan to support attaching dwarf debug information on compiled wasm code? Just like what Emscripten "-g" option does? Again, thank you for your advice. |
Producing source map for WebAssembly output it's doable and potentially useful, but currently it's not on the road map for the upcoming months. To read asmjs code (or even WebAssembly-compiled code) it's beneficial to also add Can I ask you what is the project you are working on? |
Thank you very much for your help. We only use |
Is it possible to produce wasm code with dwarf debug information attached? I have tried with
/opt/cheerp/bin/clang++ -target cheerp-wasm test.c -o test14.js -O0 -g
But the generated wasm code still contains no debug information.
The text was updated successfully, but these errors were encountered: