Search code examples
rubydebuggingrdebug

Debugging in ruby 1.9


What do you guys use for debugging in ruby 1.9? rdebug doesn't seem to be compatible.. is there anything out there?


Solution

  • Note: this answer was correct but is now out of date. See the below correct answer. TL;DR: use 'debugger' now.

    ruby-debug is now available with Ruby 1.9.x. See http://www.github.com/mark-moseley

    To install (using gem on 1.9 Ruby installation):

    gem install ruby-debug19
    

    (with perhaps the necessary 'sudo' in front of it).