On Oct 16, 2006, at 1:30 PM, Rob Hudson wrote: > > On Oct 16, 1:00 pm, "Terry" <[EMAIL PROTECTED]> wrote: >> Easiest way I've found to do it is to add the following as the first >> two lines of the view function that you want to debug: >> >> import pdb >> pdb.run_trace() >> >> Then, when you attempt to load the view, you will get the (pdb) >> prompt >> at your development server, and you can print variables, single step, >> set breakpoints, etc. > > I was trying to see what this did but I get an error that there is no > run_trace() method in pdb. In looking at pdb from the Python shell, I > see this is true. At least for my Python version (2.3.5). Did you > mean another method? If so, could you explain more?
The method is actually called pdb.set_trace(). Don --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---