Aptana插件Debug rails项目

时间:2012-05-18 21:57:18

标签: ruby-on-rails eclipse aptana aptana3

我要使用aptana studio 3 pluging来调试rails项目

我已经运行了命令

gem install ruby-debug-ide

当我选择项目的上下文菜单的Debug Server时,我得到:

/usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require': /usr/local/rvm/gems/ruby-1.9.3-p194@miGemSet/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so: undefined symbol: ruby_current_thread - /usr/local/rvm/gems/ruby-1.9.3-p194@miGemSet/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so (LoadError)
    from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
    from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
    from /usr/local/rvm/gems/ruby-1.9.3-p194@miGemSet/gems/ruby-debug-base19-0.11.25/lib/ruby-debug-base.rb:1:in `<top (required)>'
    from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
    from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
    from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
    from /usr/local/rvm/gems/ruby-1.9.3-p194@miGemSet/gems/ruby-debug-ide-0.4.17.beta9/lib/ruby-debug-ide.rb:5:in `<top (required)>'
    from /usr/local/rvm/gems/ruby-1.9.3-p194@miGemSet/gems/ruby-debug-ide-0.4.17.beta9/bin/rdebug-ide:17:in `require_relative'
    from /usr/local/rvm/gems/ruby-1.9.3-p194@miGemSet/gems/ruby-debug-ide-0.4.17.beta9/bin/rdebug-ide:17:in `<top (required)>'
    from /usr/local/rvm/gems/ruby-1.9.3-p194@miGemSet/bin/rdebug-ide:19:in `load'
    from /usr/local/rvm/gems/ruby-1.9.3-p194@miGemSet/bin/rdebug-ide:19:in `<main>'

顺便说一下,我的O.S是Fedora 16

你们中的任何人都知道这意味着什么?

提前致谢。

2 个答案:

答案 0 :(得分:1)

我遇到了与Ubuntu 12.04相同的问题,做了两件事:

1-发送电子邮件寻求帮助。 2-安装RubyMine

在这两个结果中,问题是缺少一些宝石。

linecache19(来自http://rubyforge.org/frs/?group_id=8883&release_id=46302的0.5.13) ruby-debug-base19x(gem install ruby​​-debug-base19x --pre) ruby-debug-ide(gem install ruby​​-debug-ide --pre)

感谢Denis Usahkov的帮助:D

答案 1 :(得分:0)

我从上面的链接(http://rubyforge.org/frs/?group_id=8883&release_id=46302)下载了宝石,然后我做了以下内容:

rvm fetch 1.9.3
gem install ~/Downloads/linecache19-0.5.13.gem
gem install ~/Downloads/ruby-debug-base19-0.11.26.gem -- --with-ruby-include=/home/bruno.medeiros/.rvm/src/ruby-1.9.3-p194/ 

服务器启动正常,但Aptana还没有停在断点上。