Re: Problem debugging with pdb

2009-05-16 Thread sadach
On May 16, 9:07 am, Joshua Russo wrote: > Does anyone know what the constraints > are to using the break command within pdb? Autoreload spawns a new python interpreter. Nothing survives. So don't use autoreload. Another caveat: if you try to set a breakpoint and pdb can't find the file, it's pr

Re: Problem debugging with pdb

2009-05-16 Thread Joshua Russo
Ok I figured it out. I'm not exactly sure what the b or break command within pdb does but it doesn't seem to work in some instances as I described in my initial post. Does anyone know what the constraints are to using the break command within pdb? What does work is to import pdb in the file you w

Re: Problem debugging with pdb

2009-05-15 Thread Sam Chuparkoff
On Fri, 2009-05-15 at 14:00 -0700, Joshua Russo wrote: > I can't seem to get pdb to stop at my break points for a page request. > I start it like so: > > (from the directory containing manage.py) python -m pdb manage.py > runserver Have you tried this? python -m pdb manage.py runserver --norelo

Problem debugging with pdb

2009-05-15 Thread Joshua Russo
(strangely my previous post seems to have disappeared so here we go again) I can't seem to get pdb to stop at my break points for a page request. I start it like so: (from the directory containing manage.py) python -m pdb manage.py runserver The debugger starts up properly, paused on the first