Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I remotely debug Django application?



I created a Django application, it works fine on my machine.
After that I checked out it at the test server but something doesn't work.
How can I debug it?
Is it possible to do it using PyDev Eclipse plugin or maybe are there some other ways?
In the best case I would like to use "step into", "step over", "step out" but if it is not possible, simple logging is also OK.

UPDATE:
On my machine it runs with ./manage.py runserver but on the test machine it runs with Apache+mod_wsgi

like image 398
gennad Avatar asked Sep 10 '25 20:09

gennad


1 Answers

This is a HOWTO for debugging application deployed via mod_wsgi:

http://code.google.com/p/modwsgi/wiki/DebuggingTechniques

Do you have root access to test machine? That would make it much easier. You can stop the Apache service and bring it up in a single process mode for debugging.

like image 199
Shamit Verma Avatar answered Sep 13 '25 10:09

Shamit Verma