This SO question has some good suggestions. This applies in particular to debugging inside loops. One of the best solutions is to set a breakpoint outside the loop, then use irb to set it inside the loop and clean it manually whenever you want.
It basically boils down to a little thought about where you set breakpoints.
In addition, you can not do anything.
source
share