gpt4 book ai didi

debugging - 在 Rails 4 中出现错误 # when using binding. pry

转载 作者:行者123 更新时间:2023-12-02 23:34:00 25 4
gpt4 key购买 nike

出现这个奇怪的错误

#<TypeError: wrong argument type nil (expected Symbol)>

在 utf8_sanitizer 中

rails 4.2.1ruby 2.2.0 中使用 binding.pry 执行 next

否则运行时不会出现任何错误。

最佳答案

当我升级到 Ruby 2.2 时,我的一些规范遇到了这个问题,直到我将 byebug 升级到 5.0.0 - 不确定它是否相同,因为您没有提供对您的环境的详细描述,但我希望这样很有帮助。

关于debugging - 在 Rails 4 中出现错误 #<TypeError : wrong argument type nil (expected Symbol)> when using binding. pry,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30664069/

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