On Nov 30, 4:30 pm, Bryan Lockwood <[email protected]> wrote:
> To make it simple, I now have only one version of rails, and that is  
> 2.3.4. So I uninstalled both ruby-debug and ruby-debug-base, then

What about versions of ruby ?

> re-installed them, with apparently unflawed success. I tried again to  
> invoke the rails server with the --debugger option, only to receive
> the same complaint back - namely, that I need to gem-install the ruby-
> debug gem. For yucks, I verified that the debugger itself still seems
> to be working fine, thank you.

debug and ruby-debug are different things

Fred
>
> And so I'm stuck here. I"m convinced I'm going to have to drop down to  
> the debugger at some point in my further explorations with rails,
> and I wish like hell I knew how to do that.
>
> Still seeking the answer. At this point, waiting for inspiration.
>
> Bryan
> =================================================
>
> depot 503 ->gem list --local
>
> *** LOCAL GEMS ***
>
> ...
> rails (2.3.4)
> rake (0.8.7)
> rspec (1.2.9)
> ruby-debug (0.10.3)
> ruby-debug-base (0.10.3)
> sqlite3-ruby (1.2.5)
> thin (1.2.5, 1.2.4)
>
> depot 504 ->sudo gem uninstall ruby-debug ruby-debug-base
> Password:
> Remove executables:
>         rdebug
>
> in addition to the gem? [Yn]  y
> Removing rdebug
> Successfully uninstalled ruby-debug-0.10.3
> Successfully uninstalled ruby-debug-base-0.10.3
>
> depot 505 ->sudo gem install ruby-debug
> Building native extensions.  This could take a while...
> Successfully installed ruby-debug-base-0.10.3
> Successfully installed ruby-debug-0.10.3
> 2 gems installed
> Installing ri documentation for ruby-debug-base-0.10.3...
> Installing ri documentation for ruby-debug-0.10.3...
> Installing RDoc documentation for ruby-debug-base-0.10.3...
> Installing RDoc documentation for ruby-debug-0.10.3...
>
> depot 506 ->ruby script/server --debugger
> => Booting WEBrick
> => Rails 2.3.4 application starting onhttp://0.0.0.0:3000
> You need to install ruby-debug to run the server in debugging mode.  
> With gems, use 'gem install ruby-debug'
>
> depot 507 ->ruby -r debug ./foo.rb
> Debug.rb
> Emacs support available.
>
> ./foo.rb:2:a = 1
> (rdb:1) l
> [-3, 6] in ./foo.rb
>     1
> => 2  a = 1
>     3  l=""
>     4  while l
>     5    puts "hello"
>     6    l = gets
> (rdb:1) n
> ./foo.rb:3:l=""
> (rdb:1) quit
> Really quit? (y/n) y
> depot 515 ->
>
> then as superuser I installed ruby-debug, and all went well.
> On 29.11.2009, at 23:31, Frederick Cheung wrote:
>
>
>
>
>
> > On Nov 29, 6:09 pm, Bryan Lockwood <[email protected]> wrote:
> >> You need to install ruby-debug to run the server in debugging mode.
> >> With gems, use 'gem install
>
> >> Hey wait, didn't I just do that? Yes, I did!
>
> >> So what gives? Anyone know what I need to do to enable debugging on
> >> the server?
>
> > At a guess you have two different installs of ruby and you've invoked
> > the ruby from one but the gem install from the other ( running which
> > ruby and which gem might shed some light).
>
> > Fred
>
> > --
>
> > 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-
> > [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected]
> > .
> > For more options, visit this group 
> > athttp://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