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

Pressing <Enter> with blank prompt should run last entered command #617

Closed
aaronbrethorst opened this issue Apr 8, 2022 · 2 comments
Closed

Comments

@aaronbrethorst
Copy link

Your proposal

Previously with byebug, when I was debugging my code and stopped at a breakpoint, I could single-step through the code like this:

n <enter>
<enter>
<enter>
<enter>

And so on. Pressing the enter key without any other input at the prompt would re-run the last command.

It does not appear that this is supported with the debug gem, at least not out of the box.

@adam12
Copy link
Contributor

adam12 commented Apr 8, 2022

This behaviour is supported and works for me (1.5.0). What are you seeing that indicates it not working?

What happens if you simulate something simple, like bt or info?

$ rdbg -c irb
info <enter>
<enter>

@aaronbrethorst
Copy link
Author

Interesting, the example you provide above (rdbg -c irb) works perfectly for me too. And then when I went to provide you with a more concrete example from debugging an RSpec spec, that started working, too. Weird, but I'm glad it's working now. Thanks for your time!

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

No branches or pull requests

2 participants