For a range of debugging options available for WSGI applications,
including how to get things like pdb to run in the context of Apache,
see:
http://code.google.com/p/modwsgi/wiki/DebuggingTechniques
Graham
On Nov 10, 5:04 am, [EMAIL PROTECTED] wrote:
> On Fri, Nov 09, 2007 at 08:32:15AM -0700
On Fri, Nov 09, 2007 at 08:32:15AM -0700, John M. Anderson wrote:
> > You cannot debug a single Django file in isolation. Instead, insert this
> > line:
> >
> >import pdb; pdb.set_trace()
> >
> > in sql.py, at the point you're interested in. Then run Django normally,
> > and
> > go to a db-bas
> You cannot debug a single Django file in isolation. Instead, insert this
> line:
>
>import pdb; pdb.set_trace()
>
> in sql.py, at the point you're interested in. Then run Django normally,
> and
> go to a db-based URL: you'll get a debugger prompt.
>
ok, thanks. I was just trying to debug wit
John M. Anderson wrote:
> I'm trying to debug sql.py
>
> the steps I've taken so far:
>
> python /usr/lib/python2.5/pdb.py manage.py sql polls
> (python manage.py polls works just fine)
You cannot debug a single Django file in isolation. Instead, insert this line:
import pdb; pdb.set_trace
I'm trying to debug sql.py
the steps I've taken so far:
python /usr/lib/python2.5/pdb.py manage.py sql polls
(python manage.py polls works just fine)
(Pdb) b django/core/management/sql.py:271
(Pdb) c
Traceback (most recent call last):
File "/usr/lib/python2.5/pdb.py", line 1213, in main
p
I'd love to help with the Django development. If I encounter a
Traceback in the admin interface, how would you recommend I start
debugging? Running the webserver in Komodo's debug mode fails since
multi-thread debugging is not supported. Is there a way to "simulate" a
request for a page like http: