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

Rust services debuggable test wasms #770

Open
sparkplug0025 opened this issue Jun 27, 2024 · 1 comment
Open

Rust services debuggable test wasms #770

sparkplug0025 opened this issue Jun 27, 2024 · 1 comment

Comments

@sparkplug0025
Copy link
Contributor

Analogous to what we have in C++ where we generate -debug.wasm test files that allow us to step through gdb to debug our tests, we need the same for Rust land!

@James-Mart
Copy link
Member

James-Mart commented Jun 27, 2024

I think that dwarf data is already generated during compilation for wasm32-wasi debug builds. But we will need to make sure that any transformations/polyfilling that we do during the build process doesn't strip out or corrupt the dwarf data.

I assume if the dwarf data is intact, maybe debugging should be fairly straightforward with standard tooling?

Probably means we need a --debug flag for cargo-psibase build that leaves dwarf data intact.

@swatanabe can likely provide more context/constraints when you get to this one.

@sparkplug0025 sparkplug0025 removed their assignment Aug 27, 2024
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