title: Debugging rake tasks
body: <p>I added <code>debugger</code> and <code>require 'ruby-debug'</code> in my task to debug it.</p>
  
  <p>When I run my task from the console, it does hit the <code>debugger</code>, but doesn't let me inspect any variables. For example, if there's a line in my task :</p>
  
  <pre><code>my_var = 1 + 2
  </code></pre>
  
  <p>and I type <code>my_var</code> or <code>my_var.inspect</code>, while debugging, it says :</p>
  
  <pre><code>*** Unknown command: "my_var".  Try "help".
  </code></pre>
  
  <p>What am I missing ?</p>