How can I run a spec in DEBUG mode (e.g. like rdebug <spec_name>)

Hi,

Is there a way to run a spec in debug mode (using rdebug) so I can use
breakpoints in my spec code?

I ask this noting I’ve got some differences in specs passing/failing
depending on whether I run the spec via "ruby " as opposed to
“rake spec”. (raised in separate thread)

thanks

On Tue, Dec 23, 2008 at 8:34 PM, Greg H.
[email protected] wrote:

Hi,

Is there a way to run a spec in debug mode (using rdebug) so I can use
breakpoints in my spec code?

rdebug path/to/my_spec.rb

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs