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

Support to debug (lldb) wasm execution of runtime #4127

Open
2 tasks done
crystalin opened this issue Apr 15, 2024 · 5 comments
Open
2 tasks done

Support to debug (lldb) wasm execution of runtime #4127

crystalin opened this issue Apr 15, 2024 · 5 comments
Labels
I5-enhancement An additional feature request. I10-unconfirmed Issue might be valid, but it's not yet known.

Comments

@crystalin
Copy link

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Motivation

The ability to properly debug the wasm runtime would help to solve issues faster

Request

Having a way to properly build and debug the wasm runtime (with support for VSCode would be additional bonus).

I've tried multiple "debug solutions" already existing, but none are allowing

  • force-debug
  • WASM_BUILD_TYPE=debug

Ideally, this should be part of a readme file or described somewhere for people to easily find it :)

Solution

No response

Are you willing to help with this request?

Yes!

@crystalin crystalin added the I5-enhancement An additional feature request. label Apr 15, 2024
@github-actions github-actions bot added the I10-unconfirmed Issue might be valid, but it's not yet known. label Apr 15, 2024
@crystalin
Copy link
Author

I forgot to mention I also tried to directly use "config.debug_info(true)" into the compilation, but that lead to crashes

@ggwpez
Copy link
Member

ggwpez commented Apr 15, 2024

Having a way to properly build and debug the wasm runtime (with support for VSCode would be additional bonus).

Agreed, i think the best we can do so far is to setup a Rust test and use native execution (eg https://github.com/ggwpez/wtfwt). That can at least help with finding issues by stepping through it in a debugger.

But our runtime is still way to debugger-hostile... would be nice if we can step through a WASM call directly.

@crystalin
Copy link
Author

Agree, we have been using native mostly from the beginning but on one side it is deprecated and on the other we also need to debug the wasm part sometimes

@crystalin
Copy link
Author

This issue is becoming critical (cc @bkchr ) now that #4329 is merged

@ggwpez
Copy link
Member

ggwpez commented May 7, 2024

I think if remote-externalities would support to download the keys on the fly instead of all at once then it could be possible to use the approach from above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I5-enhancement An additional feature request. I10-unconfirmed Issue might be valid, but it's not yet known.
Projects
None yet
Development

No branches or pull requests

2 participants