4 </head> |
4 </head> |
5 |
5 |
6 <body> |
6 <body> |
7 <h2>How to debug Django projects</h2> |
7 <h2>How to debug Django projects</h2> |
8 <p>This little howto gives step-by-step instructions for debugging a Django |
8 <p>This little howto gives step-by-step instructions for debugging a Django |
9 project with the eric4 debugger.</p> |
9 project with the eric7 debugger.</p> |
10 <ol> |
10 <ol> |
11 <li>Make the manage.py script of the Django project the eric4 project's |
11 <li>Make the manage.py script of the Django project the eric7 project's |
12 main script (see the Project Properties dialog).</li> |
12 main script (see the Project Properties dialog).</li> |
13 <li>Set a breakpoint at the position you want to start debugging.</li> |
13 <li>Set a breakpoint at the position you want to start debugging.</li> |
14 <li>Start the debugger using "runserver --noreload"</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> |
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> |
16 <li>Load the URL in question in a web browser.</li> |