Rails with ruby-debugger throw ‘Symbol not found: _ruby_current_thread (LoadError)’

UPDATE: Looks like you only need to put this in your gemfile: gem “debugger” and now works. Old article follows ==================================== Jerome is correct, but lacking in the details. Here is the blow by blow, taken from this https://gist.github.com/1331533, in particular thanks to andrewroth’s post. I’ve tested this as of the time of this post. … Read more

ruby-debug with Ruby 1.9.3?

Update (April 28, 2012) Try the new debugger gem as a replacement for ruby-debug. (credit to @ryanb) Update (March 2, 2012) Installation of linecache19 and ruby-debug-base19 can be easily done with: bash < <(curl -L https://raw.github.com/gist/1333785) (credit to @fredostarr) Original answer Have you looked at ruby-debug19 on ruby-1.9.3-preview1? Here’s a temporary solution: http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug Excerpt from … Read more

Running ruby debug in rspec?

You will get what you want by including require ‘ruby-debug’ at the top of your spec: # spec/models/user_spec.rb require ‘spec_helper’ require ‘ruby-debug’ describe User do it “should be valid” do debugger User.new.should be_valid end end You would then run rake spec or rspec as normal NOTE: I now prefer Ruby 2.0+ and pry. It is … Read more