Created
March 10, 2013 03:01
-
-
Save christianramsey/5126922 to your computer and use it in GitHub Desktop.
Getting ruby-debug19 to work
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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