Debugging Ruby 1.9.1+ in Komodo 5.2

Posted by ericp on 2009-09-25 09:17
OS: All / Any | Product: Komodo | tags: debugging ruby 1.9
Question: 

How do I debug with Ruby 1.9 in Komodo?

Answer: 

We put the wrong gem install instructions in Komodo 5.2 -- it should be:

gem install ruby-debug-base19

First, the gem doesn't work with Ruby 1.9.0. As I write this, version 1.9.1 is the most recent, but I expect this gem will work with future 1.9 versions.

Second, you *can* use earlier versions of Komodo to debug Ruby 1.9 -- simply edit
/.../support/dbgp/rubylib/rdbgp.rb, and change this line:

elsif ver == 1 && subver == 9

to

elsif ver == 1 && subver == 9 && teeny == 0