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

Show the current Pry prompt before console is used #2

Open
RobinDaugherty opened this issue Aug 5, 2017 · 0 comments
Open

Show the current Pry prompt before console is used #2

RobinDaugherty opened this issue Aug 5, 2017 · 0 comments

Comments

@RobinDaugherty
Copy link
Member

RobinDaugherty commented Aug 5, 2017

Currently, the console prompt is always ">>". Would be great to show the current Pry prompt instead, which depends on the currently-selected frame. For example, [1] pry(#<HomeController>):1>.

This will require a change to the Better Errors error page.
It seems like the easiest way to get this will be to have Better Errors call do_eval when the frame is changed.

An alternative would be to have the REPL instantiated for every frame as the page is being built.
This doesn't seem like it would be efficient.

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

No branches or pull requests

1 participant