[Tutor] Souce Debuger

Boudewijn Rempt boud@rempt.xs4all.nl
Sat, 3 Nov 2001 20:24:13 +0100 (CET)


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