Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Debugging 获取错误#<;TypeError:错误的参数类型nil(应为符号)>;使用捆绑时,撬入导轨4_Debugging_Ruby On Rails 4_Binding.pry - Fatal编程技术网

Debugging 获取错误#<;TypeError:错误的参数类型nil(应为符号)>;使用捆绑时,撬入导轨4

Debugging 获取错误#<;TypeError:错误的参数类型nil(应为符号)>;使用捆绑时,撬入导轨4,debugging,ruby-on-rails-4,binding.pry,Debugging,Ruby On Rails 4,Binding.pry,得到这个奇怪的错误 #<TypeError: wrong argument type nil (expected Symbol)> # 在utf8\u消毒剂中 执行next时,使用binding.pry在rails 4.2.1中使用ruby 2.2.0 否则运行时不会出现任何错误。当我升级到Ruby 2.2时,我的一些规范遇到了这个问题,直到我被eBug升级到5.0.0-不确定是否相同,因为您没有提供太多环境描述,但我希望这是有帮助的。通过eBug升级也为我解决了这个问题: bu

得到这个奇怪的错误

#<TypeError: wrong argument type nil (expected Symbol)>
#
在utf8\u消毒剂中

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


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

当我升级到Ruby 2.2时,我的一些规范遇到了这个问题,直到我被eBug升级到5.0.0-不确定是否相同,因为您没有提供太多环境描述,但我希望这是有帮助的。

通过eBug升级也为我解决了这个问题:

bundle update byebug

在RouteSet中出现了一个类似的错误问题-升级到5.0.0已修复。我在使用byebug 6.0.2和MRI 2.2.2时又遇到了这个问题。不知道我是否应该降级到byebug 5.x。伙计。