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 a way to exit the program without exiting the Rails Console #796

Open
jackrg opened this issue Mar 7, 2021 · 0 comments
Open

Provide a way to exit the program without exiting the Rails Console #796

jackrg opened this issue Mar 7, 2021 · 0 comments

Comments

@jackrg
Copy link

jackrg commented Mar 7, 2021

Problem description

When running in the Rails Console, the only way to abort the program and return to the Rails Console is with Ctrl-C while the program is running. In older versions of byebug (e.g. with Ruby 2.0/Rails 3.2), Ctrl-C at the byebug prompt would do this, but with newer versions (Ruby 2.4/Rails 5.1) this no longer works.

Expected behavior

At the byebug prompt (e.g. "(byebug)"), I would expect Ctrl-C to drop me back to the Rails Console.

Actual behavior

At the byebug prompt (e.g. "(byebug)"), when I hit Ctrl-C I just got another "(byebug)" prompt.

Load the Rails console with a breakpoint in your program, then start it up. At the breakpoint, hit Ctrl-C.

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

1 participant