How to debug Django projects

This little howto gives step-by-step instructions for debugging a Django project with the eric4 debugger.

  1. Make the manage.py script of the Django project the eric4 project's main script (see the Project Properties dialog).
  2. Set a breakpoint at the position you want to start debugging.
  3. Start the debugger using "runserver --noreload"
  4. Watch the Shell window for any output of the Django development server.
  5. Load the URL in question in a web browser.
  6. The debugger should stop at the breakpoint.
  7. Step through your scripts as needed.
  8. 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.