papyrus icon indicating copy to clipboard operation
papyrus copied to clipboard

procedural macro to inject variables

Open Mic92 opened this issue 3 years ago • 0 comments

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.

Mic92 avatar Sep 03 '21 17:09 Mic92