Ruby on Rails
HowtoDebugWithRubyDebug

Ruby-Debug uses rdebug (instead of irb) as the debugger when you run a Ruby on Rails app.
This means that you can see the code around your breakpoint, and examine variables more easily.

WINDOWS ERROR with ROR 2.0.2: seems to be broken for win32..had to go back to gem before ruby-debug was split into base & debug..like this.. gem install ruby-debug -v 0.7.5

Ruby-debug Home Page

an (outdated) example


Instructions

(These steps were tested using Ruby 1.8.6 and Rails 1.2.3. They should work for earlier versions as well, unless ruby-debug specifically says ‘Nope!’. The install and usage will probably be different once Rails 2.0 comes out.)

gem install ruby-debug

require 'ruby-debug'

script/server

- Adam G.