getting error #<TypeError: wrong argument type nil (expected Symbol)> when using binding.pry in rails 4

3.9k Views Asked by At

getting this weird error

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

in utf8_sanitizer

when doing next using binding.pry in rails 4.2.1 with ruby 2.2.0

otherwise running without any error.

2

There are 2 best solutions below

0
On

Upgrading ByeBug resolved the issue for me as well:

bundle update byebug
2
On

I was getting this problem with some of my specs when I upgraded to Ruby 2.2 until I bumped byebug to 5.0.0 - not sure if it's the same since you didn't provide much description of your environment, but I hope this is helpful.