简体   繁体   English

RubyMine图形调试器不起作用

[英]RubyMine graphical debugger not working

I'm ruby 2.2.1 and rails 4.2.0 with RubyMine 7.0.4. 我是RubyMine 7.0.4的ruby 2.2.1和rails 4.2.0。 I tried to use the graphical debugger but every time when it hits a brake point I get the following error in my browser: 我尝试使用图形调试器,但每次遇到故障时,在浏览器中都会出现以下错误:

undefined method '+' for nil:NilClass

I encountered this problem just now and solved it simply by commenting out byebug in the development group in your Gemfile. 我刚才遇到了这个问题,只需在Gemfile的开发组中注释掉byebug即可解决此问题。

group :development, :test do
  gem 'sqlite3',     '1.3.9'
#  gem 'byebug',      '3.4.0'
  gem 'web-console', '2.0.0.beta3'
  gem 'spring',      '1.1.3'
end

I think it's because this new rails built-in debugger is colliding with the one provided by RubyMine and byebug wins. 我认为是因为这种新的Rails内置调试器与RubyMine提供的冲突,并且byebug wins。

Save the revised Gemfile and restart your server in debug mode and everything should be back to normal again :) 保存修改后的Gemfile并在调试模式下重新启动服务器,一切应再恢复正常:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM