[Tutor] Souce Debuger

Lloyd Hugh Allen lha2@columbia.edu
Sat, 03 Nov 2001 16:32:30 -0500


IDLE includes a debugger that works reasonably well. You'll want to
"step" into functions that you have written and to "over" functions that
are internal to Python (there's no need to see how "print" works for
most people--usually it's just confusing).

Boudewijn Rempt wrote:
> 
> On 3 Nov 2001, Nate Custer wrote:
> 
> > Hey all,
> >
> > Is there anything comprable to gdb for python? I want to step through a
> > large program, and cutting and pasting into the interp is a lot of work.
> >
> 
> There's an almost exact equivalent included: pdb. Of course, it's
> horrible to use, being a command-line debugger. You might want to
> try eric, the debugger that's included with PyQt. That one has the
> advantage that it knows where to stop - i.e., it doesn't try to
> step into the standard modules. Likewise, BlackAdder, Pythonwin,
> Pythonworks, Wing IDE, Komodo and perhaps Idle (I'm not sure about
> Idle) all include nice debuggers. DDD can be used as a frontend to
> pdb, but I haven't had much success with it. And I've used pydebug
> for a long time. I don't know where that script went to, but The
> Vaults of Parnassus might know.
> 
> Finally, there's not much that a well-placed print statement cannot
> tell you :-).
> 
> Boudewijn Rempt  | http://www.valdyas.org
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor