-
Notifications
You must be signed in to change notification settings - Fork 424
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
preserve variable names in debug output #763
Comments
This requires that (1) Note that
I assume this default was intentional, since it is documented in the So, this question might be better asked to |
thanks, i've tried same investigation myself and see same results. posted issue to and i'm still curios why would |
hey folks! it seems like we've found a resolution for this- do we think additional documentation would be helpful to other users here? let me know and i can make this a ticket for that! otherwise we can close :) |
here's main unanswered question from WebAssembly/wabt#1290 (comment)
|
This issue might already be outdated...? Just in case it helps checking the original problem, here is a small repo with the |
currently when building with debug info resulting wasm lacks original names for local / global variables and function parameters.
my_lib/src/lib.rs
compiling to wasm
converting wasm to wat
I can easily find my
add_two
function, but names of variables / parameters are gone, which is why it's hard to read and debug.I believe those
$p0
,$p1
,$l0
,$l1
names are autogenerated by wasm2wat, since original wasm uses indices instead of custom names.is it possible to preserve original names?
The text was updated successfully, but these errors were encountered: