Skip to content

Show the current Pry prompt before console is used #2

Description

@RobinDaugherty

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions