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
I came up with another answer to this today that I like even better:
debugger unless @no_debug
Use that on every line that has a debugger stop. When you want to stop stopping just set @no_debug to something.