title: Ruby on Rails: debugging rake tasks
body: <p>When I write <code>debugger</code> it does not start:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>If I run <code>rake my:task --debugger</code>,it returns me to console immediately. How is it possible to debug rake tasks?</p>