[Tutor] [newbie] output formatting [using traceback to printcall stacks]

Alan Gauld alan.gauld at blueyonder.co.uk
Wed Nov 5 15:43:06 EST 2003


> > PPS. Is there a Python (or maybe Perl (!)) prog that prints the
'call
> > stack' of a Python program? I need to analyse other peoples
programs,
> > that's why I need it.
>
> Hello!
>
>
> Yes; the 'traceback' module has functions that allow us to see the
call
> stack:

And the pdb debugger (or the one in IDLE or Pythonwin IDE's)
will let you do this too.

http://www.python.org/doc/current/lib/module-pdb.html

Alan G
Author of the Learn to Program web tutor
http://www.freenetpages.co.uk/hp/alan.gauld




More information about the Tutor mailing list