Friday, July 15, 2011

Installing Ruby Debug

1) From the root of the project run:
gem install ruby-debug19 -- --with-ruby-include="$rvm_path/src/$(rvm tools identifier)/"

2) Include in Gemfile

group :test, :development do
gem ‘ruby-debug19′, :require => ‘ruby-debug’

3) Create a .rdebugrc in your home directory

set autolist
set autoeval
set autoreload
set forcestep

Specify how you would like Rails to report deprecation notices for your bugger environment, set
config.active_support.deprecation to :log, :notify or :stderr at config/environments/bugger.rb

5) require 'ruby-debug' in development.rb. Edit source where you want to debug to include :


6) Start server in debug mode:
rails s -d