I sometimes set breakpoints in deep loop code as follows:
import pdb; pdb.set_trace()
If I press c , then it continues, but is interrupted again at the next iteration of the loop. Is there any way to clear this pdb breakpoint? The b command does not list it.
Or is there one liner that I can paste into my Python source file that sets a soft breakpoint that can be cleared?
Or, ideally, one insert that sets the trace, then clears?
Edit: I'm interested in any editor that allows you to set breakpoints.
I am currently running my script from emacs as follows:
Mx pdb Run ~/.virtualenvs/.../python2.7/pdb.py (like this): ~/.virtualenvs/.../python2.7/pdb.py ~/start-myserver.py
source share