How to stop the Rails debugger for the current request

后端 未结 9 1397
既然无缘
既然无缘 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:44

    exit debugger out of the loop, use

    exit-all

    instead of

    cont

    Although, it will create an error and you might have to remove debugger and send request again but it will get you out of all the loops

提交回复
热议问题