Skip to content

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

Description

@aaronbrethorst

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.

Activity

  1. adam12 commented on Apr 8, 2022

    @adam12
    Contributor

    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>
    
  2. aaronbrethorst commented on Apr 8, 2022

    @aaronbrethorst
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions