I use ipdb fairly often in a way to just jump to a piece of code that is isolated i.e. it is hard to write a real script that uses it. Instead I write a minimal test case with mocking and jump into it.
Exemplary for the workflow:
py.test test_file.py -s -k test_case
I put the following in my
import os alias kk os.system('kill -9 %d' % os.getpid())
kk kills the debugger and (the process that trigger the debugger).