[rspec-users] Ruby Debugger - not working in rspec?

David Chelimsky dchelimsky at gmail.com
Fri Mar 4 05:47:08 EST 2011

On Mar 3, 2011, at 11:44 PM, Jason Nah wrote:

> Howdy,
> I'm trying to get the ruby debugger to breakpoint at a specific line in source.
> Here's what I did:
> Added require "ruby-debug" in spec_helper.rb
You don't need this ^^.
> Added gem dependency to Gemfile (gem "ruby-debug"
> In the spec, added before do breakpoint; 0; end
Use "debugger" instead of "breakpoint".
> Ran it with rspec spec/models/myspec.rb -d
This is correct ^^.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110304/21fbcb10/attachment.html>

More information about the rspec-users mailing list