I can’t seem to find any information on debugging a python web application, specifically stepping through the execution of a web request.
is this just not possible? if no, why not?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you put
in your code, the web app will drop to a pdb debugger session upon executing
set_trace.Also useful, is
which drops you to the python interpreter. Pressing Ctrl-d resumes execution.
Still more useful, is
which drops you into an IPython session (assuming you’ve installed IPython). Here too, pressing Ctrl-d resumes execution.