(undefined local variable or method `byebug'

后端 未结 2 840
时光取名叫无心
时光取名叫无心 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.

    0 讨论(0)
  • 2021-02-18 15:46

    Make sure you haven't installed the gems with bundle install --without development option.

    If that is the case just run bundle install --with development

    0 讨论(0)
提交回复
热议问题