Open joshuay03 opened 7 months ago
wow I see... Should we consume all input before REPL?
advices are very welcome If someone knows a techniques about it on other implementations
Should we consume all input before REPL?
Hmm possibly, is that considered unconventional? Might be worth looking at how pry
handles this.
Or maybe just ignore previous REPL if in-between sessions.
I too recently encountered this same issue. makes it hard to clear extra lines in the console
Been seeing the same issue. This didn't use to be the case. Maybe we can track down when this started?
@ko1 What do you think about an option where Rails could turn off this repeater behavior? Right now ruby/debug is not all that usable in Rails because of this issue.
Your environment
ruby -v
: ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]rdbg -v
: rdbg 1.9.2Describe the bug
After hitting a
debugger
break point once, and usingc
to move on, if you hitEnter
before the next break point, the next breakpoint is skipped.To Reproduce
Script:
Without hitting
Enter
:https://github.com/ruby/debug/assets/54629302/2c5779ef-a054-4db9-97d0-1f09eaf05e49
With hitting
Enter
during the firstsleep
:https://github.com/ruby/debug/assets/54629302/808ccb30-456a-4888-9794-96f514f8189f
Expected behavior
The execution should stop at the next breakpoint regardless of what keystrokes are used between breakpoints.
Additional context
None.