How can I make Perl and Python print each line of the program being executed?

Vi. picture Vi. · May 20, 2010 · Viewed 8.8k times · Source

I know that bash -x script.sh will execute script printing each line before actual execution. How to make Perl and Python interpreters do the same?

Answer

msw picture msw · May 20, 2010

Devel::Trace is the Perl analogue, the trace module is Python's.