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?
bash -x script.sh
Devel::DumpTrace was released in 2011 and has more features than Devel::Trace, such as evaluating variable values in the trace output.
Devel::Trace