We'll respond shortly.
Many people (including me) have complained about the lack of a good GUI debugger for Ruby. Now that some are finally getting usable, I’ve found I actually prefer IRB-style ruby-debug to a GUI.
There’s good tutorial links on the ruby-debug homepage (http://bashdb.sourceforge.net/ruby-debug.html), and a very good Cheat sheet, but I wanted to give a bare-bones HOWTO to help you get immediately productive with ruby-debug.
$ gem install ruby-debug
$ gem install cheat $ cheat rdebug
$ vi ~/.rdebugrc set autolist set autoeval set autoreload
$ rdebug script/server
(rdb:1) b app/controllers/my_controller.rb:10
require 'ruby-debug' debugger my_buggy_method('foo')
(rdb:1) cat RuntimeError
(rdb:1) @myvar = 'foo'
There are many other commands, but these are the basics you need to poke around. Check the Cheat sheet for details.
This can also be used directly from any IDE that supports input into a running console (such as Intellij Idea).
That should get you started. So, before you stick in another ‘p’ to debug, try out ruby-debug instead!