BetterErrors / BetterErrors/better_errors-pry

Show the current Pry prompt before console is used

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Ruby
Stars
8
Forks
0
PR merge metrics
No merged PRs in 30d

Description

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(#):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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.