|
1 <html> |
|
2 <head> |
|
3 <title>Debug Howto</title> |
|
4 </head> |
|
5 |
|
6 <body> |
|
7 <h2>How to debug Django projects</h2> |
|
8 <p>This little howto gives step-by-step instructions for debugging a Django |
|
9 project with the eric4 debugger.</p> |
|
10 <ol> |
|
11 <li>Make the manage.py script of the Django project the eric4 project's |
|
12 main script (see the Project Properties dialog).</li> |
|
13 <li>Set a breakpoint at the position you want to start debugging.</li> |
|
14 <li>Start the debugger using "runserver --noreload"</li> |
|
15 <li>Watch the Shell window for any output of the Django development server.</li> |
|
16 <li>Load the URL in question in a web browser.</li> |
|
17 <li>The debugger should stop at the breakpoint.</li> |
|
18 <li>Step through your scripts as needed.</li> |
|
19 <li>When done, stop the Django server by selecting "Reset" or "Reset and Clear" |
|
20 from the Shell window context menu. Ctrl-C will not work here.</li> |
|
21 </ol> |
|
22 <p><strong>Note:</strong> If the same URL is requested several times, it may be |
|
23 neccessary to restart the Django server in between the requests.</p> |
|
24 </body> |
|
25 </html> |