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

前端 未结 3 949
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-07 22:55

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?

3条回答
  •  悲哀的现实
    2020-12-07 23:34

    Devel::DumpTrace was released in 2011 and has more features than Devel::Trace, such as evaluating variable values in the trace output.

提交回复
热议问题