How to debug Django projects
This little howto gives step-by-step instructions for debugging a Django
project with the eric4 debugger.
- Make the manage.py script of the Django project the eric4 project's
main script (see the Project Properties dialog).
- Set a breakpoint at the position you want to start debugging.
- Start the debugger using "runserver --noreload"
- Watch the Shell window for any output of the Django development server.
- Load the URL in question in a web browser.
- The debugger should stop at the breakpoint.
- Step through your scripts as needed.
- When done, stop the Django server by selecting "Reset" or "Reset and Clear"
from the Shell window context menu. Ctrl-C will not work here.
Note: If the same URL is requested several times, it may be
neccessary to restart the Django server in between the requests.