Search code examples
pythonbashperldebuggingtrace

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


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?


Solution

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