title: Running ruby debug in rspec?
body: <p>I'm trying to get Ruby debugger running in one of my specs:</p>
  
  <pre><code>describe User do
    it "should be valid" do
      debugger
      User.new.should be_valid
    end
  end
  </code></pre>
  
  <p>When I run rspec though, I get:</p>
  
  <pre><code>debugger statement ignored, use -d or --debug option to enable debugging
  </code></pre>
  
  <p>I've tried the following:</p>
  
  <pre><code>rake spec --debug
  rake spec --debug  --trace
  rake spec:models --debug
  bundle exec rspec --debug
  bundle exec rspec --debug spec/models/
  bundle exec rspec --d spec/models/
  bundle exec "rspec --debug" spec/models/
  bundle exec rspec --debugger spec/models/
  bundle exec --debugger rspec spec/models/
  bundle --debugger exec rspec spec/models/
  bundle --debugger exec rspec spec/models/
  bundle exec --debugger rspec spec/models/
  bundle exec rspec --debugger spec/models/
  </code></pre>
  
  <p>Any ideas on how to exec rspec in the right way?  I'm on Rails 3.0.5, Ruby 1.9.2, RSpec 2.5.1, ruby-debug19.</p>
  
  <p>Thanks,
  Justin.</p>