This card needs to be updated for Rails 3+.
Since there is no --debugger
flag you need to run:
rdebug script/runner lib/scripts/something.rb
That will open an debugging IRB right away, like this:
require File.dirname(__FILE__) + '/../config/boot'
(rdb:1) _
Enter c
to continue and reach your actual debugger
call. Then, debug away.
If nothing happens for you: Make sure ruby-debug
is available in the Gemfile and you require
it.
Posted by Arne Hartherz to makandra dev (2012-04-04 09:10)