debug icon indicating copy to clipboard operation
debug copied to clipboard

`list -` doesn't work with IRB console

Open AlexWayfer opened this issue 1 year ago • 2 comments

Your environment

  • ruby -v: ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]
  • rdbg -v:rdbg 1.9.2

Describe the bug

Here is the list - command to see predecessor lines (useful after regular list usage).

It works in a default console, but not in IRB: it considers - as an operator, I suppose.

To Reproduce

  1. binding.break in a code.
  2. list in IRB console.
  3. list - in IRB console.

Expected behavior

Working list - command (or an alias).

Additional context

irb:rdbg(#<RSpec::ExampleGroups::UIClu...):004* l -
irb:rdbg(#<RSpec::ExampleGroups::UIClu...):005* l - # debug command

^C

AlexWayfer avatar Jul 08 '24 10:07 AlexWayfer