You need a debugger here.<br><br><div class="gmail_quote">On Tue, Apr 6, 2010 at 8:41 AM, Lie Ryan <span dir="ltr"><<a href="mailto:lie.1296@gmail.com">lie.1296@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On 04/06/10 12:38, Peng Yu wrote:<br>
> I want to show what commands have been executed when I run a python<br>
> script. Is there an option which can instruct python to print the<br>
> commands automatically?<br>
><br>
> (If you are familiar with R, what I am asking is essentially<br>
> options(echo=T) in R.)<br>
><br>
<br>
</div>It's not exactly the same, but pdb (Python Debugger) can do something<br>
similar.<br>
<div><div></div><div class="h5">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br>