使用rubymine调试rails应用程序

使用rubymine调试rails应用程序,第1张

概述我有一个使用 Ruby 1.8.7的Rails应用程序,我在调试模式下运行并设置断点时收到此错误: 54749: Exception in DebugThread loop: undefined method `errmsg' for #<Debugger::ControlState:0x10e3def28>Backtrace:/Users/ohad/.rvm/gems/ruby-1.8.7- 我有一个使用 Ruby 1.8.7的Rails应用程序,我在调试模式下运行并设置断点时收到此错误:

54749: Exception in DeBUGThread loop: undefined method `errmsg' for #<DeBUGger::ControlState:0x10e3def28>Backtrace:/Users/ohad/.rvm/gems/ruby-1.8.7-p371/gems/ruby-deBUG-0.10.4/cli/ruby-deBUG/command.rb:188:in `errmsg'  from: /Users/ohad/.rvm/gems/ruby-1.8.7-p371/gems/ruby-deBUG-0.10.4/cli/ruby-deBUG/commands/breakpoints.rb:81:in `execute'  from: /Users/ohad/.rvm/gems/ruby-1.8.7-p371/gems/ruby-deBUG-IDe-0.4.17.beta16/lib/ruby-deBUG-IDe/IDe_processor.rb:89:in `process_commands'  from: /Users/ohad/.rvm/gems/ruby-1.8.7-p371/gems/ruby-deBUG-IDe-0.4.17.beta16/lib/ruby-deBUG-IDe/IDe_processor.rb:86:in `catch'  from: /Users/ohad/.rvm/gems/ruby-1.8.7-p371/gems/ruby-deBUG-IDe-0.4.17.beta16/lib/ruby-deBUG-IDe/IDe_processor.rb:86:in `process_commands'  from: /Users/ohad/.rvm/gems/ruby-1.8.7-p371/gems/ruby-deBUG-IDe-0.4.17.beta16/lib/ruby-deBUG-IDe.rb:121:in `start_control'  from: /Users/ohad/.rvm/gems/ruby-1.8.7-p371/gems/ruby-deBUG-IDe-0.4.17.beta16/lib/ruby-deBUG-IDe.rb:103:in `initialize'  from: /Users/ohad/.rvm/gems/ruby-1.8.7-p371/gems/ruby-deBUG-IDe-0.4.17.beta16/lib/ruby-deBUG-IDe.rb:103:in `new'  from: /Users/ohad/.rvm/gems/ruby-1.8.7-p371/gems/ruby-deBUG-IDe-0.4.17.beta16/lib/ruby-deBUG-IDe.rb:103:in `start_control'  from: /Users/ohad/.rvm/gems/ruby-1.8.7-p371/gems/ruby-deBUG-IDe-0.4.17.beta16/lib/ruby-deBUG-IDe.rb:65:in `start_server'  from: /Users/ohad/.rvm/gems/ruby-1.8.7-p371/gems/ruby-deBUG-IDe-0.4.17.beta16/lib/ruby-deBUG-IDe.rb:69:in `prepare_deBUGger'  from: /Users/ohad/.rvm/gems/ruby-1.8.7-p371/gems/ruby-deBUG-IDe-0.4.17.beta16/lib/ruby-deBUG-IDe.rb:83:in `deBUG_program'  from: /Users/ohad/.rvm/gems/ruby-1.8.7-p371/gems/ruby-deBUG-IDe-0.4.17.beta16/bin/rdeBUG-IDe:109  from: -e:1:in `load'  from: -e:1

我已经在我的Gemfile中添加了ruby-deBUG:

group :development do  gem "inaction_mailer",'0.6',:require => 'inaction_mailer/force_load'  gem 'ruby-deBUG',:require => nil  # gem 'bullet'  # gem "ruby-growl"end
解决方法 你安装了ruby-deBUG gem,将其删除.

参见this answer,只需要2个调试宝石(Ruby 1.8的版本会有所不同):

ruby-deBUG-base (0.10.5.rc3)ruby-deBUG-IDe (0.4.17.beta16)
总结

以上是内存溢出为你收集整理的使用rubymine调试rails应用程序全部内容,希望文章能够帮你解决使用rubymine调试rails应用程序所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/1294379.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-06-10
下一篇2022-06-10

发表评论

登录后才能评论

评论列表(0条)

    保存