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

Open
envygeeks opened this Issue Nov 26, 2011 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

envygeeks commented Nov 26, 2011

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.

Collaborator

badosu commented Jun 11, 2013

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