Re: debugging/breakpointing

2007-03-11 Thread [EMAIL PROTECTED]
I'm probably be getting way deep over my head in this since I'm not a Django user and stuff like command completion is a little bit open- ended. However pydb (http://bashdb.sf.net/pydb) has some support for command completion and at least tries to save it's history across sessions in a file calle

Re: debugging/breakpointing

2007-03-09 Thread Greg Donald
On 3/9/07, Ned Batchelder <[EMAIL PROTECTED]> wrote: > PDB lets you do what you want. Yup.. thanks. Is there a way to get tab completion working? Or make it use ipython? I seem to have command history, but not across sessions? -- Greg Donald http://destiney.com/ --~--~-~--~~-

Re: debugging/breakpointing

2007-03-09 Thread Ned Batchelder
PDB lets you do what you want. I use the low-tech approach: in the view I want to debug, I add a line of code which invokes pdb: def my_view(request, arg1, arg2): import pdb; pdb.set_trace() # The rest of the view code... set_trace() is the function which breaks into the debugger. Yes,

Re: debugging/breakpointing

2007-03-09 Thread Greg Donald
On 3/9/07, Baurzhan Ismagulov <[EMAIL PROTECTED]> wrote: > What do you mean by "access into the execution stack directly"? Perhaps I am not using the correct terminology. When I create a view that handles a form post, how can I interrogate the request.POST? How can I breakpoint just as executio

Re: debugging/breakpointing

2007-03-09 Thread Baurzhan Ismagulov
Hello Greg, On Fri, Mar 09, 2007 at 05:53:44PM -0600, Greg Donald wrote: > I found http://docs.python.org/lib/module-pdb.html but I'm wanting > something where I can gain console access into the execution stack > directly. What do you mean by "access into the execution stack directly"? With "Pyt

debugging/breakpointing

2007-03-09 Thread Greg Donald
Is there anything like Rubyonrails's script/breakpointer: http://wiki.rubyonrails.org/rails/pages/HowtoDebugWithBreakpoint in Django (or Python)? I found http://docs.python.org/lib/module-pdb.html but I'm wanting something where I can gain console access into the execution stack directly. Fail