tag:help.rubygems.org,2010-01-19:/discussions/problems/272-ruby-debug-with-snow-leopardRubyGems.org: Discussion 2018-10-18T19:50:58Ztag:help.rubygems.org,2010-01-19:Comment/24848742010-08-05T19:38:56Z2010-08-12T02:27:59Zruby-debug with Snow Leopard<div><p>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.</p>
<pre><code>$ 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'</code>
</pre>
<p>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?<br />
</p>
<p>Thanks, JWM</p></div>johntag:help.rubygems.org,2010-01-19:Comment/24848742010-08-12T02:29:45Z2010-08-12T02:29:45Zruby-debug with Snow Leopard<div><p>This isn't exactly a Rails support forum, but I'm not sure what's wrong here. Maybe you need to add <code>config.gem 'ruby-debug'</code> to your config/environment.rb? Can you <code>require 'ruby-debug'</code> from <code>script/console</code> ?</p></div>Nick Quarantotag:help.rubygems.org,2010-01-19:Comment/24848742010-08-12T02:50:13Z2010-08-12T02:50:13Zruby-debug with Snow Leopard<div><p>Nick,<br />
</p>
<pre><code>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!</code></pre>
<p>All done with this one, --JWM</p></div>john