pry-debugger icon indicating copy to clipboard operation
pry-debugger copied to clipboard

`break --condition` doesn't parse right

Open Sharpie opened this issue 12 years ago • 2 comments

It appears that the break --condition command does not work:

[1] pry(main)> RUBY_VERSION
=> "1.9.3"
[2] pry(main)> Pry::VERSION
=> "0.9.12.2"
[3] pry(main)> break foo.rb:3
Breakpoint 1: /Users/sharpie/foo.rb @ line 3 (Enabled) :

    1: x=2
    2: 
 => 3: puts x

[4] pry(main)> break --condition 1 x == 2
Error: The method '--condition' could not be found. Type `break --help` for help.

Is there something wrong with the way I am passing the flag?

Sharpie avatar Nov 14 '13 00:11 Sharpie

Oh, I should also add:

pry(main)> PryDebugger::VERSION
=> "0.2.2"

Sharpie avatar Nov 14 '13 00:11 Sharpie

Hrm maybe something changed with Slop, which is what Pry uses to parse commands.

For now, you should be able to do break foo.rb:3 if x == 2

nixme avatar Nov 14 '13 01:11 nixme