How to output the commands that are executed in a python script?

Shashwat Anand anand.shashwat at gmail.com
Tue Apr 6 05:25:40 CEST 2010


You need a debugger here.

On Tue, Apr 6, 2010 at 8:41 AM, Lie Ryan <lie.1296 at gmail.com> wrote:

> On 04/06/10 12:38, Peng Yu wrote:
> > I want to show what commands have been executed when I run a python
> > script. Is there an option which can instruct python to print the
> > commands automatically?
> >
> > (If you are familiar with R, what I am asking is essentially
> > options(echo=T) in R.)
> >
>
> It's not exactly the same, but pdb (Python Debugger) can do something
> similar.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100406/653a75f3/attachment.html>


More information about the Python-list mailing list