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
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.
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.
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