RubyMine debugger
Wrote at October 13, 2010 da Filippo Camillo
I just installed the early development version of Rubymine, the most powerful IDE for ruby developer (and not only ruby...) I know.
But I was angry because the Rubymine's Debug feature, my favorite, was broken.
I thought it could be a nice idea to share with you what I figured out...
Well, I'm on Macosx (Snow Leopard) and these are the steps I did:
- remove every ruby-debug* gem from your system: sudo gem uninstall ruby-debug ruby-debug-ide ruby-debug-base
- reinstall ruby-debug directly from RubyMine (it will ask you when you'll click the debug button) or from Macosx terminal
After that I got another error:
Cannot connect to the debugged process at port 53848 in 10s:
Error Output:
/Users/jbeck/.gem/ruby/1.8/gems/ruby-debug-base-0.10.3/lib/ruby_debug.bundle: dlopen(/Users/jbeck/.gem/ruby/1.8/gems/ruby-debug-base-0.10.3/lib/ruby_debug.bundle, 9): no suitable image found. Did find: (LoadError)
/Users/jbeck/.gem/ruby/1.8/gems/ruby-debug-base-0.10.3/lib/ruby_debug.bundle: no matching architecture in universal wrapper – /Users/jbeck/.gem/ruby/1.8/gems/ruby-debug-base-0.10.3/lib/ruby_debug.bundle
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require’
It was a linecache gem error. Just remove and reinstall it too:
- sudo gem uninstall linecache
- sudo gem install linecache
That's all. It works like a charm now, I'm loving RubyMine
no comment yet