(undefined local variable or method `byebug'

后端 未结 2 847
时光取名叫无心
时光取名叫无心 2021-02-18 15:15

I have the follwing error:

NameError (undefined local variable or method `byebug\'

Code is

def  test
  t = \"\"
  by         


        
2条回答
  •  遇见更好的自我
    2021-02-18 15:34

    It seems you need to

    require 'byebug'

    I was in the same situation and require failed with 'cannot load such file' error but adding to the Gemfile worked.

提交回复
热议问题