Forums

pdb.set_trace() breakpoints

I'm trying to set pdb breakpoints in my Django app so I can have a live interpreter to step through my app as it runs. Is this possible on PythonAnywhere?

Unfortunately not :-( We run Django apps in a production environment (as opposed to a development one) so there's no was we could connect pdb to them.

One thing I would recommend -- try writing unit tests for any parts of your site that aren't behaving as you'd expect. Then you should be able to use pdb manage.py test to run those tests and work out what's going wrong.

Thank you, I'll look into that.