ProjectDjango/Documentation/help/howto-debug.html

Sun, 30 Mar 2025 15:25:10 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 30 Mar 2025 15:25:10 +0200
branch
eric7
changeset 206
4dfd8f6f2503
parent 172
ea7980ded4f3
permissions
-rw-r--r--

Created global tag <release-10.4.0>.

<html>
<head>
    <title>Debug Howto</title>
</head>

<body>
    <h2>How to debug Django projects</h2>
    <p>This little howto gives step-by-step instructions for debugging a Django
    project with the eric7 debugger.</p>
    <ol>
        <li>Make the manage.py script of the Django project the eric7 project's
            main script (see the Project Properties dialog).</li>
        <li>Set a breakpoint at the position you want to start debugging.</li>
        <li>Start the debugger using "runserver --noreload"</li>
        <li>Watch the Shell window for any output of the Django development server.</li>
        <li>Load the URL in question in a web browser.</li>
        <li>The debugger should stop at the breakpoint.</li>
        <li>Step through your scripts as needed.</li>
        <li>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.</li>
    </ol>
    <p><strong>Note:</strong> If the same URL is requested several times, it may be 
    neccessary to restart the Django server in between the requests.</p>
</body>
</html>

eric ide

mercurial