Skip to content

Instantly share code, notes, and snippets.

@christianramsey
Created March 10, 2013 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christianramsey/5126922 to your computer and use it in GitHub Desktop.
Save christianramsey/5126922 to your computer and use it in GitHub Desktop.
Getting ruby-debug19 to work
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’
end
3) Create a .rdebugrc in your home directory
set autolist
set autoeval
set autoreload
set forcestep
4)
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 :
debugger
6) Start server in debug mode:
rails s -d
references @ http://bparanj.blogspot.com/2011/07/installing-ruby-debug.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment