I sometimes set breakpoints in deep loop code as follows:
import pdb; pdb.set_trace()
If I press c then it continues, but breaks again on the next iteration of the loop.
Is there a way of clearing this breakpoint from within pdb? The b command doesn't list it.
Or is there a one liner I can insert into my Python source file that will set a 'soft' breakpoint that can be cleared?
Or ideally a one liner that sets the trace, then clears itself?
Edit: I'd be interested in any editor that lets you set breakpoints.
I currently run my script from emacs as follows:
M-x pdb
Run ~/.virtualenvs/.../python2.7/pdb.py (like this):
~/.virtualenvs/.../python2.7/pdb.py ~/start-myserver.py