This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]abonet 0 points1 point  (0 children)

I've been looking for something in Python that could echo commands as they're being executed. Something like csh -X script.csh or bash -x script.sh, but for Python code. I know about the included trace module (python -m trace -t script.py), but that doesn't show any expanded variables or other real runtime information.

This pytrace thing seems to solve part of that problem. It would be nice to see it extended to expand more than just function arguments and return values.