Debugger in controller in rspec

I placed a debugger statement in a controller being tested with rspec2
to catch what’s going on, but the statement is ignored? Do I have to
do anything special to get the debugger to stop in the controller
under rspec? If I place the debugger statement in the spec, I get a
break – but I want the break in the controller itself.


Just tested the debugger statement from controller and it worked as it

I’m using the latest RSpec gems, have this in my Gemfile:

group :development do
platforms :mri_18 do
gem “ruby-debug”
platforms :mri_19 do
gem “ruby-debug19”, :require => “ruby-debug”

and run rspec with -d option.
So you probably should supply us with your failing example.