Debugging rake tasks

I just had need to drop into the debugger while running a rake db:migrate task. After a few moments thought I tried:

 rdebug -n /opt/local/bin/rake db:migrate

and was pleasantly suprised to hit the debugger statement in my migration.

09/12/2007 10:12 by Matt Mower | Permalink | comments:
More about: