Re: [Rails] Can't get debugger to work on MacOS X Lion/Rails 3.2/Ruby 1.9.3
On Apr 8, 2012, at 2:43 , David Paschich 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
try $ RUBYOPT='-r openssl' bundle exec rspec -d spec/controllers/seasons_controller_spec.rb
it looks weird but usually works :)
--
===============================================================================
Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache
www.meinlschmidt.com www.maxwellrender.cz www.lightgems.cz
===============================================================================
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home