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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100421/7bc78571/attachment.html>
On Wed, Apr 21, 2010 at 6:13 PM, John Dell <spovich at gmail.com> wrote:> 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?Looks like it''s broken, as it should be working. Please do two things (I''m on my way out the door): 1. enter an issue at http://github.com/rspec/rspec-core/issues 2. try this: rdebug rspec ./spec> > Thanks! > John > > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On Wed, Apr 21, 2010 at 4:24 PM, David Chelimsky <dchelimsky at gmail.com>wrote:> Looks like it''s broken, as it should be working. Please do two things > (I''m on my way out the door): > > 1. enter an issue at http://github.com/rspec/rspec-core/issuesDone. http://github.com/rspec/rspec-core/issues/issue/24> > 2. try this: > > rdebug rspec ./spec >Yep, that works fine. Thanks for your fast reply! John -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100421/8bdb137a/attachment.html>