3 ms·
$ 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 ha
by codygman 13y ago
$ 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.