Skip to content

procedural macro to inject variables #104

@Mic92

Description

@Mic92

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions