Rails debugging rails tasks

Posted by SMiX on Stack Overflow See other posts from Stack Overflow or by SMiX
Published on 2010-04-18T20:53:10Z Indexed on 2010/04/18 21:03 UTC
Read the original article Hit count: 544

Filed under:
|
|

Hello. How is it possible to debug rake tasks?

When I write debugger it does not start:

NoMethodError: undefined method `run_init_script' for Debugger:Module
from /usr/local/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.3/lib/ruby-debug-base.rb:239:in `debugger'
from (irb):4

If I run rake my:task --debugger rake returns me to console immediately.

© Stack Overflow or respective owner

Related posts about ruby

Related posts about ruby-on-rails