gpt4 book ai didi

ruby - 使用 ruby​​mine 调试 Rails 应用程序

转载 作者:数据小太阳 更新时间:2023-10-29 07:16:12 28 4
gpt4 key购买 nike

我有一个使用 Ruby 1.8.7 的 Rails 应用程序,在 Debug模式下运行并设置断点时出现此错误:

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

我已将 ruby​​-debug 添加到我的 Gemfile 中:

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 个调试 gem(Ruby 1.8 的版本会有所不同):

ruby-debug-base (0.10.5.rc3)
ruby-debug-ide (0.4.17.beta16)

关于ruby - 使用 ruby​​mine 调试 Rails 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14783872/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com