I've been having similar issues. There is apparently a fork of the project
called simply 'debugger' as the original ruby-debug seems to have been
abandoned (heresay).

Let me know if you find a solution; debugger didn't work for me, but it is
likely that my system is borked uniquely as most I know have no trouble.
On Apr 7, 2012 8:44 PM, "David Paschich" <[email protected]> wrote:

> I'm trying to get the ruby debugger working and can't seem to get there.
> Environment summary:
>
> Mac OS X Lion
> RVM
> Ruby 1.9.3p125
> Rails 3.2.3
> Rspec 2.9.0
>
> I've put the debugger statement in my controller like so:
>
>   def show
>     debugger
>     seasons = Season.where(:name=>params[:id])
>     puts @seasons
>     @season = seasons.first
>     puts @season
>     @season_entries = @season.season_entries
>   end
>
> And run my spec like so:
>
> $ bundle exec rspec -d spec/controllers/seasons_controller_spec.rb
>
> Without the -d, my spec runs as I expect it - except the test fails for a
> reason I'm trying to figure out with the debugger. :)
>
> With the -d, I get this error:
>
> /Users/dpassage/.rvm/gems/ruby-1.9.3-p125/gems/rspec-core-2.9.0/lib/rspec/core/configuration.rb:422:in
> `rescue in debug=':  (RuntimeError)
> **************************************************
> dlopen(/Users/dpassage/.rvm/gems/ruby-1.9.3-p125/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle,
> 9): Symbol not found: _ruby_current_thread
>   Referenced from:
> /Users/dpassage/.rvm/gems/ruby-1.9.3-p125/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle
>   Expected in: flat namespace
>  in
> /Users/dpassage/.rvm/gems/ruby-1.9.3-p125/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle
> -
> /Users/dpassage/.rvm/gems/ruby-1.9.3-p125/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle
>
> If you have it installed as a ruby gem, then you need to either require
> 'rubygems' or configure the RUBYOPT environment variable with the value
> 'rubygems'.
>
> /Users/dpassage/.rvm/gems/ruby-1.9.3-p125/gems/ruby-debug-base19-0.11.25/lib/ruby-debug-base.rb:1:in
> `require'
> /Users/dpassage/.rvm/gems/ruby-1.9.3-p125/gems/ruby-debug-base19-0.11.25/lib/ruby-debug-base.rb:1:in
> `<top (required)>'
> /Users/dpassage/.rvm/gems/ruby-1.9.3-p125/gems/ruby-debug19-0.11.6/cli/ruby-debug.rb:5:in
> `require'
> [...]
>
> Any ideas/advice?
>
> -David
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/sqg6Oyhtz7wJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to