开发者

Netbeans/Aptana/RubyMine debugger in Windows 7 (64bit) + Ruby 1.8.7 + Rails 2.3.x does not work

When I start the debugger I get the following error:

Netbeans "couldn't connect to server" 

When I look at the editor log I see the following exception:

C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require': no such file to load -- require_relative (LoadError)
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from C:/Ruby187/lib/ruby/gems/1.8/gems/linecache-0.45/lib/linecache.rb:66
from C:/Ruby187/lib/ruby/s开发者_Python百科ite_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
from C:/Ruby187/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.4/lib/ruby-debug-base.rb:3
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from C:/Ruby187/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.17.beta5/lib/ruby-debug-ide.rb:5
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from C:/Ruby187/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.17.beta5/bin/rdebug-ide:7
from -e:1:in `load'
from -e:1

I am on:

Windows 7 (64bit)
Ruby 1.8.7
Rails 2.3.9

I am using following debug related gems:

ruby-debug-ide (0.4.9)
ruby-debug-base (0.10.4 mswin32)
linecache (0.45)

Note: I was able to reproduce the same issue on RubyMine and Aptana.


The issue is due to the latest version of linecache gem and I had to revert to an older version(0.43).

I did the following to fix the issue:

gem uninstall ruby-debug-ide ruby-debug-base linecache
gem install ruby-debug-ide

Re-install ruby-debug-base gem

gem uninstall ruby-debug-base
gem install  ruby-debug-base --platform mswin32

Re-install linecache gem

gem uninstall linecache
gem install  linecache  -v 0.43


to get the debugger running with ruby 1.8.7

gem install rake -v 10.4.2

download and unzip DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe from http://rubyinstaller.org/downloads to a location of your choice

cd to the installation location and run ruby dk.rb init ruby dk.rb install

gem install ruby-debug-ide -v 0.6.0

(tested with aptana IDE)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜