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

[x/programs] Add debug logging host function to wasm. #788

Closed
richardpringle opened this issue Mar 15, 2024 · 1 comment · Fixed by #892
Closed

[x/programs] Add debug logging host function to wasm. #788

richardpringle opened this issue Mar 15, 2024 · 1 comment · Fixed by #892
Assignees

Comments

@richardpringle
Copy link
Contributor

We should just be able to overwrite print! and all its variants. The dbg! macro would especially be nice. I'm sure there's a way to supply a function for that with wasmtime.

@iFrostizz
Copy link
Contributor

Not sure if we will be able to hijack println! and dbg! but it is possible to invoke JS's console.log https://rustwasm.github.io/wasm-bindgen/examples/console-log.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants