pry-debugger
pry-debugger copied to clipboard
`break --condition` doesn't parse right
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?
Oh, I should also add:
pry(main)> PryDebugger::VERSION
=> "0.2.2"
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