在RubyMine上调试Ruby代码时的随机断点

时间:2022-04-17 11:16:10

My application runs correctly when I start it up in debug mode. The following message shows up on the console:

当我在调试模式下启动应用程序时,它可以正常运行。控制台显示如下消息:

Fast Debugger (ruby-debug-ide 0.6.1.beta2, debase 0.2.2.beta7, file filtering is supported) listens on 0.0.0.0:59678
=> Booting WEBrick
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000

When I add any breakpoint, the debugger stops at random lines in ruby's code. And the following comes up on the console:

当我添加任何断点时,调试器会在ruby代码中的任意行停止。控制台显示如下:

/Users/shiladityamandal/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:198:in `each'
/Users/shiladityamandal/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:198:in `block in start'
/Users/shiladityamandal/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:32:in `start'
/Users/shiladityamandal/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:160:in `start'
/Users/shiladityamandal/.rvm/gems/ruby-2.1.1/gems/rack-1.4.7/lib/rack/handler/webrick.rb:13:in `run'
/Users/shiladityamandal/.rvm/gems/ruby-2.1.1/gems/rack-1.4.7/lib/rack/server.rb:268:in `start'

Has anyone else faced this issue?

还有其他人面对过这个问题吗?

1 个解决方案

#1


2  

Jetbrains support suggested a solution which worked for me: downgrading debase gem from 0.2.2-beta7 0.2.2-beta6

Jetbrains support为我提供了一个解决方案:将debase gem从0.2 -beta7 0.2 -beta6降级

Existing issue link: https://youtrack.jetbrains.com/issue/RUBY-17990

现有问题链接:https://youtrack.jetbrains.com/issue/ruby - 17990

#1


2  

Jetbrains support suggested a solution which worked for me: downgrading debase gem from 0.2.2-beta7 0.2.2-beta6

Jetbrains support为我提供了一个解决方案:将debase gem从0.2 -beta7 0.2 -beta6降级

Existing issue link: https://youtrack.jetbrains.com/issue/RUBY-17990

现有问题链接:https://youtrack.jetbrains.com/issue/ruby - 17990