RubyMine调试不起作用

时间:2017-07-26 15:16:12

标签: ruby rubygems rubymine

我无法在RubyMine中使用调试模式。以下是我安装它所做的一切。接下来是错误详细信息和我的设置 请提出任何建议

下载并安装Ruby

1.下载Ruby 2.2.6 - http://rubyinstaller.org/downloads/

2.安装Ruby 2.2.6到C:\ Ruby

B下载Ruby Dev kit

3.返回http://rubyinstaller.org/downloads/

4.在开发中点击“https://dl.bintray.com/oneclick/rubyinstaller/DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe

5.Create Folder C:\ Ruby \ DevKit

6.将“DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe”解压缩到C:\ Ruby \ DevKit

8.转到文件夹C:\ Ruby \ DevKit,现在按Shift然后右键单击“在此打开命令窗口”

9.在命令提示符下键入“ruby dk.rb init”并按Enter键(c:\ DevKit> ruby​​ dk.rb init)

10.在命令提示符下键入“ruby dk.rb install”并按Enter键(c:\ DevKit> ruby​​ dk.rb install)

C安装RubyGems

11.打开命令提示符并键入以下命令,每次都按Enter键 c:\ gem install bundler

然后导航到Gemfile所在的项目文件夹并运行命令'bundle install'

D下载并安装Ruby Mine

13.打开http://www.jetbrains.com/ruby/download/

14.点击30天试用“立即下载”

15.Now安装Ruby Mine

从这一点开始,我可以加载项目并运行项目,但是当我尝试调试时 同样的项目我遇到了问题。

消息是测试框架意外退出

C:\Ruby\bin\ruby.exe -EUTF-8 -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:/Ruby/lib/ruby/gems/2.2.0/gems/ruby-debug-ide-0.6.0/bin/rdebug-ide --disable-int-handler --evaluation-timeout 10 --rubymine-protocol-extensions --port 62718 --host 0.0.0.0 --dispatcher-port 62719 -- C:\Ruby\bin/cucumber C:/git/wiggle-automation/features/checkout.feature --format Teamcity::Cucumber::Formatter --expand --color -r features
Testing started at 15:58 ...
C:/Ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- debase_internals (LoadError)
    from C:/Ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from C:/Ruby/lib/ruby/gems/2.2.0/gems/debase-0.2.2.beta10/lib/debase.rb:4:in `<top (required)>'
    from C:/Ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from C:/Ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from C:/Ruby/lib/ruby/gems/2.2.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:8:in `<top (required)>'
    from C:/Ruby/lib/ruby/gems/2.2.0/gems/ruby-debug-ide-0.6.0/bin/rdebug-ide:8:in `require_relative'
    from C:/Ruby/lib/ruby/gems/2.2.0/gems/ruby-debug-ide-0.6.0/bin/rdebug-ide:8:in `<top (required)>'
    from -e:1:in `load'
    from -e:1:in `<main>'

Process finished with exit code 1

因此,考虑到这一点,我尝试安装debase - gem install debase 我得到了这个

Building native extensions.  This could take a while...
The system cannot find the path specified.
ERROR:  Error installing debase:
        ERROR: Failed to build gem native extension.
C:/Ruby/bin/ruby.exe -r ./siteconf20170726-16784-15t9wif.rb extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
checking for vm_core.h... yes
creating Makefile
extconf failed, exit code 1
Gem files will remain installed in C:/Ruby/lib/ruby/gems/2.2.0/gems/debase-0.2.1 for inspection.
Results logged to C:/Ruby/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/debase-0.2.1/gem_make.out

所以我看一下上面的gem_make.out文件,我看到了这个

C:/Ruby/bin/ruby.exe -r ./siteconf20170726-21048-1y9auxw.rb extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
checking for vm_core.h... yes
creating Makefile
extconf failed, exit code 1

任何人都可以解释发生的事情。

我正在使用Windows 7和Ruby 2.2.6p396

1 个答案:

答案 0 :(得分:0)

现在好了。 我以管理员身份打开命令提示符,然后执行以下操作 c:\ gem install ruby​​-debug-ide c:\ gem install debase

这次他们都没有错误地执行。 然后我重新启动了RubyMine,现在我可以在调试模式下运行了。 快乐的日子....