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

procedural macro to inject variables #104

Open
Mic92 opened this issue Sep 3, 2021 · 0 comments
Open

procedural macro to inject variables #104

Mic92 opened this issue Sep 3, 2021 · 0 comments

Comments

@Mic92
Copy link

Mic92 commented Sep 3, 2021

I saw in your examples, that it's possible to inject local variables through app_data.
Do you think it's feasible to inject a struct with reference to the current function scope
into the repl? In this tutorial I saw a trace_vars macro that went in a similar direction: https://blog.logrocket.com/macros-in-rust-a-tutorial-with-examples/
I think there might be issues with ownership?

This would make papyrus super useful for debugging and add feature similar to binding.pry in ruby or breakpoint() in python.

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

1 participant