I am trying to add a breakpoint()
to a particular line in a Django
code which is running on an ec2 instance
. I have tried ipdb
, pdb
tried
import pdb;set_trace()
it quits giving a BdbQuit
error.
tried simply adding
breakpoint
This simply gets ignored
None of them stop the code. If I run the code like this
python -m pdb manage.py runserver
,
it immediately drops into pdb
and fails after executing 2 lines. How exactly should I use pdb
in Django
correctly?
Old answers don't work.