0

我正在尝试使用 aptana studio 3 插件调试 Rails 项目

我已经运行了命令

gem install ruby-debug-ide

当我选择项目上下文菜单的调试服务器时,我得到:

/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>'

顺便说一句,我的操作系统是 Fedora 16

你们有谁知道那是什么意思吗?

提前致谢。

4

2 回答 2

1

我在 Ubuntu 12.04 上遇到了同样的问题,做了两件事:

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

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

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

感谢 Denis Usahkov 的帮助:D

于 2012-05-23T10:05:44.690 回答
0

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

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 尚未在断点处停止。

于 2012-09-27T02:58:44.237 回答