But a macro that processes the entire module can modify it.
Would it be possible to write a macro which processes every module loaded to override try to include this debugging information?
I still find this one of the most parts of ruby I miss once. For instance, if I’m running a test and it’s failing due to a function deep in the stack I would love to know what arguments were passed to that function so I can quickly debug what might be happening higher in the stack.
In ruby, I can just inspect the args and quickly modify the code. In elixir I have to add pry to the right place in the stack that I control, rerun the tests, and hope that I placed the debugger in the correct spot.
I think adding this feature to elixir (in dev/test mode only) would be amazing and be an incredible help to users.






















