Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
envygeeks opened this issue Nov 26, 2011 · 2 comments
Closed

Comments

@envygeeks
Copy link
Contributor

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.

@badosu
Copy link
Collaborator

badosu commented Jun 11, 2013

What would be a case for this?

When called inside a binding.pry?

@prpetten
Copy link
Collaborator

@envygeeks Are you still having this issue? Trying to take over maintenance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants