pry-byebug
pry-byebug copied to clipboard
Unexpected behavior when there is a command after it on same line
I had something like this in my rspec spec.
before(:each) { binding.pry; Settings.set_dir(@fixture_dir) }
This behaves differently then when I have it like this:
before(:each) {
binding.pry
Settings.set_dir(@fixture_dir)
}
Later works as expected - stops where I have put command binding.pry
Former stops in first line of function Settings.set_dir