Issue
The Django debugger is absolutely dreading and finding errors is a daunting task.
Are there any third party Django debuggers out there?
Solution
Pydevd plugin for eclipse supports debugging code run from outside the IDE. I find it works great with Django.
It's simple to use - start the debugger from eclipse, then add the line import pydevd;pydevd.settrace()
and execution will break at that line, allowing you to step through etc from eclipse.
To debug code on a remote machine, include the ip address of the machine running eclipse as an argument to settrace()
(ie import pydevd;pydevd.settrace('10.0.0.68')
).
Obviously the pydevd module will neeed to be on your pythonpath.
For installation instructions check the docs.
Answered By - Aidan Ewen
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.