title: How to debug ruby code?
body: <p>I run Ubuntu 10.10. I just want to debug a simple script. After spending half a day trying to figure out how that could be done I give up. What the heck am I supposed to do?</p>
  
  <p>I installed <code>ruby-dev</code> from the Ubuntu repository<br>
  I ran <code>sudo gem install ruby-debug</code> and <code>sudo gem install ruby-debug-ide</code></p>
  
  <p>I tried a few different ways to make this work. I tried <code>require 'ruby-debug'</code> and then setting <code>debugger</code> somewhere in the code. But Ruby won't find <code>ruby-debug</code>.<br>
  I tried setting up <code>vim-ruby-debugger</code>, which will take <em>ages</em> to execute <code>:Rdebugger myScript.rb</code> and will allow me to set breakpoints, but there doesn't seem to be a way to execute my code using that debugger.<br>
  And I tried to use NetBeans which simply crashed every time I set up the project and clicked anything.</p>
  
  <p>So, dear community: There must be a way to debug Ruby. Not Rails. Nothing fancy. Just some CLI script. Please help me or I lose what is left of my sanity.</p>
  
  <p><strong>Edit:</strong>
  the gem exec dir was not in my path. So, at least rdebug seems to work now.</p>