You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using binding.irb, if I explicitly type continue to continue past a first breakpoint, then pressing enter by itself will continue past the next breakpoint. I expect pressing enter should just insert a newline (i.e. increment the irb prompt).
As you can see in the video below, pressing enter after reaching the first breakpoint just increments the irb prompt, as expected.
However, upon reaching the second breakpoint, pressing enter immediately causes the interpreter to continue past the breakpoint. This is not expected.
Untitled.mov
Result of irb_info
irb(main):001> irb_info
Ruby version: 3.3.5
IRB version: irb 1.14.0 (2024-07-06)
InputMethod: RelineInputMethod with Reline 0.5.10 and /Users/mbrictson/.inputrc
Completion: Autocomplete, RegexpCompletor
RUBY_PLATFORM: arm64-darwin23
LANG env: en_US.UTF-8
East Asian Ambiguous Width: 1
Terminal Emulator
macOS Terminal (macOS Sonoma 14.6.1)
Setting Files
~/.irbrc - None
~/.inputrc
"\e[A": history-search-backward
"\e[B": history-search-forward
$if Bash
Space: magic-space
$endif
set completion-ignore-case on
set completion-map-case on
set match-hidden-files off
set show-all-if-ambiguous on
set colored-stats on
The text was updated successfully, but these errors were encountered:
For context, this is what ruby/debug does: inserting empty input after stepping commands like step, next, and continue, will repeat the previous command.
And IRB's continue command, along with other debugging commands, are simply shortcuts to start an irb:rdbg session, which is essentially a ruby/debug running IRB as its REPL. So in those sessions we decided to mimic the above behaviour.
Description
When using
binding.irb
, if I explicitly typecontinue
to continue past a first breakpoint, then pressing enter by itself will continue past the next breakpoint. I expect pressing enter should just insert a newline (i.e. increment the irb prompt).As you can see in the video below, pressing enter after reaching the first breakpoint just increments the irb prompt, as expected.
However, upon reaching the second breakpoint, pressing enter immediately causes the interpreter to continue past the breakpoint. This is not expected.
Untitled.mov
Result of irb_info
Terminal Emulator
macOS Terminal (macOS Sonoma 14.6.1)
Setting Files
~/.irbrc
- None~/.inputrc
The text was updated successfully, but these errors were encountered: