import pdb; pdb.set_trace()
# You can put it anywhere in a functionpython -m pdb manage.py runserverc= continuen= nexta= arguments of current functionq= quit (notctrl+cas you might think that'll just make pdb angry)
https://docs.python.org/3/library/pdb.html#debugger-commands