Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Provide binding.caller_of_caller or default to caller of caller. #3

envygeeks opened this Issue · 1 comment

2 participants


Right now when rescuing into debuggers we have to do binding.of_caller(n) which could confuse the user as to what we are exactly doing if they don't know about binding_of_caller. It would be nice to imply what we are doing by having binding.caller_of_caller so the user could see that hey we are putting them into the context of the caller so they can debug the area that had an exception.

There is another small tidbit (but we can address that ourselves with an internal function) which is detecting if the caller is inside of a rescue and if it is push it to the next caller -- but I don't know much about ruby internals to say if that's easy to implement.


What would be a case for this?

When called inside a binding.pry?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.