If I get you right.
One possible way to do this would be:
Once you get the pdb prompt. Just press n (next) 10 times to exit the loop.
However, I do not know how to exit the loop in pdb .
You can use r to exit the function.
j_juggernaut Oct 07 2018-11-11T00: 00Z
source share