Here it is:

Traceback:
File "/home/mat/projects/gae-django/dev/polls/views.py" in index
  7.     return HttpResponse("Hello!")
File "/home/mat/projects/gae-django/dev/polls/views.py" in index
  7.     return HttpResponse("Hello!")
File "/usr/lib/python2.5/bdb.py" in trace_dispatch
  48.             return self.dispatch_line(frame)
File "/usr/lib/python2.5/bdb.py" in dispatch_line
  67.             if self.quitting: raise BdbQuit

Exception Type: BdbQuit at /polls/
Exception Value:


On Jan 9, 9:49 pm, Malcolm Tredinnick <malc...@pointy-stick.com>
wrote:
> On Fri, 2009-01-09 at 15:50 -0800, Mat wrote:
> > I have 2 different behaviors using pdb
>
> > In this view:
>
> > from django.http import HttpResponse
> > import pdb; pdb.set_trace()
>
> > def index(request):
> >     import pdb; pdb.set_trace()
> >     return HttpResponse("Hello!")
>
> > The first debug will work and be raised in the shell but the second
> > one (inside the function) won't be raised and will generate a web page
> > that begins with:
>
> > > /home/mat/projects/gae-django/dev/polls/views.py(7)index()
> > -> return HttpResponse("Hello!")
> > (Pdb)
> > Status: 500 INTERNAL SERVER ERROR
> > Content-Type: text/html
>
> > and the the rest of the django debug trace will be displayed IN TEXT.
>
> So what is the error that is reported? The traceback is there to tell
> you what went wrong.
>
> Malcolm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to