23 June 2007

Ruby on Rails Debug: Windows

As you may have figured out the breakpointer service no longer works in rails Rails as of 1.2.x. However a super alternative appeared "ruby-debug". Maintained by Kent Sibilev, it gives all the features of the previous breakpointer service and then some. So far the best documentation I can find is located here. More or less your entering the text "debugger" in your code as opposed to "breakpoint". A note for windows users is when you do the gem install be sure to pick the win32 version. Say yes to the rest and you're straight.

The documentation above will get you set on using the special features of the debugger, but if you want the simplicity of the old breakpointer service try this:
  1. Once the debugger executes type "irb". You'll now be in the same mode that the breakpointer service used.
  2. To exit the irb type "exit"
  3. To exit the debugger and continue the application type "cont"
This should give you the same experience as the original breakpointer service provided you.
This also works excellent on other platforms.

Cheers

1 comment:

Anonymous said...

Thanks!