For some quick Python debugging I'll occasionally throw in a import pdb;pdb.set_trace()
line that will drop me into the debugger. Very handy. However, if I want to debug a loop, that may run many, many, many times, it loses its effectiveness somewhat. I could mash on c
ontinue many, many, many times, but is there a way to remove/ignore that hard-coded breakpoint so I can let it finish?
I could set a global flag and run it conditionally, but then I'd lose the 'standalone-ness' of the one-line breakpoint, also requiring another flag for each pdb.set_trace()
.