I’m diving into rails3 and rspec2. Things are a bit rough…
New application using RVM w/ruby 1.8.7 p249, Rails (3.0.0.beta3), RSpec
(2.0.0.beta.7), ruby-debug (0.10.3), ruby-debug-base (0.10.3)
I created a .rspec file in my Rails.root with the following
–debug
–colour
–format progress
Then I add a ‘debugger’ statement in one of my .spec files, and run
‘rake
spec’, I get the following:
“debugger statement ignored, use -d or --debug option on rspec to enable
debugging”
Running “rspec -d ./spec/**” gives the same result. So, am I calling
debugger wrong, or is it not working yet?
Thanks!
John
On Wed, Apr 21, 2010 at 6:13 PM, John D. [email protected] wrote:
Then I add a ‘debugger’ statement in one of my .spec files, and run ‘rake
spec’, I get the following:
“debugger statement ignored, use -d or --debug option on rspec to enable
debugging”
Running “rspec -d ./spec/**” gives the same result. So, am I calling
debugger wrong, or is it not working yet?
Looks like it’s broken, as it should be working. Please do two things
(I’m on my way out the door):
- enter an issue at Issues · rspec/rspec-core · GitHub
- try this:
rdebug rspec ./spec
On Wed, Apr 21, 2010 at 4:24 PM, David C.
[email protected]wrote:
Looks like it’s broken, as it should be working. Please do two things
(I’m on my way out the door):
- enter an issue at Issues · rspec/rspec-core · GitHub
Done. --debug not working RSpec (2.0.0.beta.7) · Issue #24 · rspec/rspec-core · GitHub
- try this:
rdebug rspec ./spec
Yep, that works fine.
Thanks for your fast reply!
John