RubyMine调试器错误

时间:2014-05-03 09:17:04

标签: ruby rubymine

我使用RubyMine 6.3但是我在调​​试器方面遇到了一些问题

  

C:\ Ruby200 \ bin \ ruby​​.exe -e   $ stdout.sync =真; $ stderr.sync = TRUE;负载($ 0 = ARGV.shift)   C:/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.23.beta1/bin/rdebug-ide   --disable-int-handler --port 49883 --dispatcher-port 49884 - C:/ Ruby200 / Projekty / 123 / test   C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:在   require': cannot load such file -- debase_internals (LoadError) from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in 需要&#39;从   C:/Ruby200/lib/ruby/gems/2.0.0/gems/debase-0.0.9/lib/debase.rb:4:在   <top (required)>' from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in 需要&#39;从   C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:在   require' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.23.beta1/lib/ruby-debug-ide.rb:8:in &#39;从   C:/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.23.beta1/bin/rdebug-ide:8:在   require_relative' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.23.beta1/bin/rdebug-ide:8:in &#39;来自-e:1:load' from -e:1:in&#39;

     

使用退出代码1完成处理

但是当使用Ruby Interactive Console时,一切正常。当我使用Komodo IDE时,一切都很好。

5 个答案:

答案 0 :(得分:34)

我通过从终端手动安装debase来解决我的问题,而不是从与rubymine捆绑的那个安装,尝试它

gem install debase

PS:我使用的是ruby 1.9.3

答案 1 :(得分:6)

将以下内容添加到我的Gemfile中,使debugging和rails命令工作(版本:Rubymine 7.0.4,ruby 2.3.1和rails 4.2.6):

  group :development do
    gem 'ruby-debug-ide', '0.4.24'
    gem 'debase', '0.2.1'
  end

答案 2 :(得分:3)

花了6个小时来完成这个工作,以防万一这有助于其他人,这就是我所做的:

  1. 升级到最新版本的RubyMine(从JetBrains网站下载7.0)
  2. 升级到Ruby 2.1.2
  3. 打开RubyMine&gt;文件&gt;默认设置&gt; Ruby SDK&amp;宝石&gt;选择ruby-2.1.2&gt;点击了&#39; +&#39; <右侧>安装黄瓜和葫芦黄瓜
  4. RubyMine&gt;运行&gt;编辑配置&gt;将SDK更改为ruby-2.1.2
  5. 它有效。希望这可能有助于其他新手Calabash / Ruby / RubyMine

答案 3 :(得分:0)

Martins-MacBook-Pro:~ martincleaver$ sudo gem install debase -v 0.0.9
Password:
ERROR:  Error installing debase:
    ERROR: Failed to build gem native extension.
checking for vm_core.h... no
    No source for ruby-2.0.0-p648 provided with debugger-ruby_core_source gem.

Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.  Check the mkmf.log file for more details. 

$ more /Library/Ruby/Gems/2.0.0/gems/debase-0.0.9/ext/gem_make.out
checking for vm_core.h... no
Makefile creation failed
Check the mkmf.log file for more details

$ more /Library/Ruby/Gems/2.0.0/gems/debase-0.0.9/ext/mkmf.log 
have_header: checking for vm_core.h... -------------------- no

conftest.c:3:10: fatal error: 'vm_core.h' file not found
#include <vm_core.h>

--------------------

https://github.com/denofevil/debase/issues/9从gem角度跟踪问题。这是讨论此事的最佳场所。

那就是说,iheggie在https://stackoverflow.com/a/37086441/722034的回答为我工作。

答案 4 :(得分:0)

将 Rubymine 更新到最新版本(并等待重新索引完成,这可能会很长时间)帮助解决了一些问题,参见 https://intellij-support.jetbrains.com/hc/en-us/community/posts/360009522340-Unable-to-use-debugger-debase-0-3-0-beta34-install-error-