How to use Ruby debug on NetBeans 7.1.2

The right combination of gems with their version is the following:


gem ‘linecache19’, ‘0.5.13’
gem ‘ruby-debug-base19x’, ‘0.11.30.pre10’
gem ‘ruby-debug19’

and outside Gemfile:

$ gem install ruby-debug-ide19

It is also needed a bug fix in the file ~/.rvm/gems/ruby-1.9.3-p194/bin/rdebug-ide:

gem ‘ruby-debug-ide19’, version
$: << “.”  # <—- add this line
load Gem.bin_path(‘ruby-debug-ide19’, ‘rdebug-ide’, version)

This works for my system:

$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

$ rails -v
Rails 3.2.6

$ rvm -v
rvm 1.14.3 (stable) by Wayne E. Seguin <>, Michal Papis <> []

$ gem -v

Note: I am not able to use Ruby debug inside Eclipse Juno yet.