How to stop the Rails debugger for the current request

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

    You can always comment out the debugger call from your code then type reload in your debug session. Then just cont once and the request will continue without triggering a debug session.

    Because you're in development mode, you can just add the debugger call back in later and it will trigger correctly.

提交回复
热议问题