How to stop the Rails debugger for the current request

后端 未结 9 1393
既然无缘
既然无缘 2021-02-02 15:50

Say I have a loop in my code that calls the rails debugger a few times

def show
    animals = [\'dog\', \'cat\', \'owl\', \'tiger\']
    for animal in animals
           


        
9条回答
  •  爱一瞬间的悲伤
    2021-02-02 16:37

    If I want control back, I just do

    eval return
    

    and I will exit the currently running function, which will usually kick me back to the IRB [rails console] prompt.

提交回复
热议问题