I found a lot of info about how to debug simple Python programs with Emacs. But what if I want to debug a Django application? I run the development server and I would like to so
Start pdb like this:
M-x pdb
Then, start the Django development server:
python manage.py runserver --noreload
Once you have the (Pdb) prompt, you need to do this:
import sys
sys.path.append('/path/to/directory/containing/views.py')
Once you've done this, you should be able to set breakpoints normally. Just navigate to the line number you want, and
C-x SPC