RubyMine 调试不工作

RubyMine debug not working

我无法在 Ruby我的中使用调试模式。以下是我为安装所有内容所做的工作。接下来是错误详细信息和我的设置 有什么建议吗

A 下载并安装 Ruby

1.Download Ruby 2.2.6 - http://rubyinstaller.org/downloads/

2.Install Ruby 2.2.6 到 C:\Ruby

B 下载Ruby 开发工具包

3.Return 到 http://rubyinstaller.org/downloads/

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

5.Create 文件夹 C:\Ruby\DevKit

6.Unzip "DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe" 到 C:\Ruby\DevKit

8.Go 到文件夹 C:\Ruby\DevKit ,现在按 Shift 然后右键单击 "Open command window here"

9.Type "ruby dk.rb init" 在命令提示符下回车 (c:\DevKit>ruby dk.rb init)

10.Type "ruby dk.rb install" 在命令提示符下回车 (c:\DevKit>ruby dk.rb install)

C 安装 RubyGems

11.Open 命令提示符并键入以下命令并每次按回车键 c:\gem 安装捆绑器

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

D 下载并安装 Ruby 我的

13.Open http://www.jetbrains.com/ruby/download/

14.Click 30 天试用期 "Download Now"

15.Now 安装 Ruby 我的

从现在开始我可以加载项目和 运行 项目但是当我尝试调试 同一个项目我遇到了问题。

消息是测试框架意外退出

C:\Ruby\bin\ruby.exe -EUTF-8 -e $stdout.sync=true;$stderr.sync=true;load([=10=]=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

好的,现在开始工作了。 我以管理员身份打开命令提示符,然后执行以下命令 c:\gem 安装 ruby-调试-ide c:\gem 安装 debase

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