ruby-debug with Snow Leopard

john's Avatar

john

05 Aug, 2010 07:38 PM

Here's the situation after I upgraded OS X from 10.5 to 10.6.4 and now I can't start Mongrel with debug.

$ script/server -u
...
=> Rails 2.3.8 application starting on http://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'

So I do an uninstall of ruby-debug and its dependencies, that's fine:
~/Devo/vsc_audit(master) $ sudo gem uninstall ruby-debug -x
Password:
Removing rdebug
Successfully uninstalled ruby-debug-0.10.3

Followed by:  
$ sudo gem install ruby-debug --include-dependencies
INFO:  `gem install -y` is now default and will be removed
INFO:  use --ignore-dependencies to install only the gems you list
Successfully installed ruby-debug-0.10.3
1 gem installed
Installing ri documentation for ruby-debug-0.10.3...
Installing RDoc documentation for ruby-debug-0.10.3...
~/Devo/vsc_audit(master) $ 

...and try to start a server, same problem.
1 gem installed
Installing ri documentation for ruby-debug-0.10.3...
Installing RDoc documentation for ruby-debug-0.10.3...
~/Devo/vsc_audit(master) $ script/server -u
=> Booting Mongrel
=> Rails 2.3.8 application starting on http://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'

Is this enough to clarify what's wrong? I've attached (my very generic) /config/boot.rb just in case you need it. What else?

Thanks, JWM

  1. Support Staff 2 Posted by Nick Quaranto on 12 Aug, 2010 02:29 AM

    Nick Quaranto's Avatar

    This isn't exactly a Rails support forum, but I'm not sure what's wrong here. Maybe you need to add config.gem 'ruby-debug' to your config/environment.rb? Can you require 'ruby-debug' from script/console ?

  2. 3 Posted by john on 12 Aug, 2010 02:50 AM

    john's Avatar

    Nick,
        OK, but thanks for replying. Turns out I succeeded by adding 'linecache' to the gem install ruby-debug. I found a reference blog that said to do this and didn't explain, but it WORKs!

    All done with this one, --JWM

  3. Nick Quaranto closed this discussion on 14 Aug, 2010 04:13 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

16 Apr, 2014 09:28 PM
16 Apr, 2014 08:29 PM
16 Apr, 2014 08:28 PM
16 Apr, 2014 08:26 PM
16 Apr, 2014 08:23 PM