RubyMine 调试器错误

问题描述 投票:0回答:6

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

C:\Ruby200 在 uby.exe -e $stdout.sync=true;$stderr.sync=true;load($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:in

require': cannot load such file -- debase_internals (LoadError)  from
  C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
  
需要来自 C:/Ruby200/lib/ruby/gems/2.0.0/gems/debase-0.0.9/lib/debase.rb:4:in
<top (required)>'    from
  C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
  
需要来自 C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
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
  
' 来自 C:/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.23.beta1/bin/rdebug-ide:8:in
require_relative'    from
  C:/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.23.beta1/bin/rdebug-ide:8:in
  
' 来自 -e:1:in
load'     from -e:1:in
'

进程已完成,退出代码为 1

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

ruby rubymine
6个回答
37
投票

我通过从终端手动安装

debase
解决了我的问题,而不是从与 rubymine 捆绑的终端安装,尝试一下

gem install debase

PS:我使用的是ruby 1.9.3


8
投票

将以下内容添加到我的 Gemfile 中可以使调试和 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

3
投票

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

  1. 升级到最新版本的 RubyMine(从 JetBrains 网站下载 7.0)
  2. 升级至Ruby 2.1.2
  3. 打开 RubyMine > 文件 > 默认设置 > Ruby SDK & Gems > 选择 ruby-2.1.2 > 单击右侧的“+” > 安装了 cucumber 和 calabash-cucumber
  4. RubyMine > 运行 > 编辑配置 > 将 SDK 更改为 ruby-2.1.2

它奏效了。 希望这可以帮助其他刚接触 Calabash / Ruby / RubyMine 的人


1
投票

将 Rubymine 更新到最新版本(并等待重新索引完成,这可能会很长)有助于解决一些问题 cf https://intellij-support.jetbrains.com/hc/en-us/community/posts/360009522340 -无法使用调试器-debase-0-3-0-beta34-安装错误-


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 的回答对我有用。


0
投票

10年前你好!对于我们这些在 2024 年遇到

debase
错误的人来说,这是我搜索中出现的第一个项目。

我的问题不在于我的

debase
副本,而在于 Spring 预加载器。 禁用预加载器似乎已经解决了问题。

© www.soinside.com 2019 - 2024. All rights reserved.