I have a failing scenario in cucumber, and I'd like to debug my rails controller using ruby-debug. But if I add 'debugger' to the point where I want to break, it doesn't stop.
I tried adding require of ruby-debug and rubygems to the features/support/env.rb but then it says to me that it can't load ruby-debug, although ruby-debug is on the gem list and I can load it in irb.
So... what should I do to get it working?
Thanks!
For the modern Ruby version of a debugger (using binding.pry), I recommend create a file
features/support/debugging.rb
with the following contents, and then calling cucumber with environment variables set to debug: