irb icon indicating copy to clipboard operation
irb copied to clipboard

Ctrl-D behaviour is different between normal IRB and irb:rdbg sessions

Open st0012 opened this issue 1 year ago • 0 comments

Description

In normal IRB sessions, ctrl-D is the same as exit, which exits the current IRB session. In irb:rdbg sessions, ctrl-D is executed by debug, which is the same as its quit command and will leave the entire process.

So in the a process that has multiple breakpoints, ctrl-D is semantically similar to continue. But once irb:rdbg is activated, ctrl-D's behaviour changes. This adds cognitive load to users as they need to be aware of the type of sessions they're in to perform the intended action.

st0012 avatar Apr 11 '24 20:04 st0012