Re:Debugging Python Like a Boss
by codygman on Thursday November 21, 2013 @04:38PM
(#6777694)
$ python -m pdb manage.py test
(Pdb) break mymodule/myfile.py:42
(Pdb) c
The above should work for tests if I understand correctly, though I haven't checked yet. This solves most of my current debugging problems, and if I'm reading correctly that would solve yours too?
I wonder if you could also use it with runfcgi or any of the other manage commands? I personally use nginx+gunicorn, but for testing production I could switch it to runfcgi or similar really quick.
To be honest though, I don't find myself ever debugging production.
I wonder if you could also use it with runfcgi or any of the other manage commands? I personally use nginx+gunicorn, but for testing production I could switch it to runfcgi or similar really quick.
To be honest though, I don't find myself ever debugging production.