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

Unexpected behavior when there is a command after it on same line

Open marko-avlijas opened this issue 8 years ago • 0 comments

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

marko-avlijas avatar Jan 18 '17 12:01 marko-avlijas