我怎样才能使Perl和Python打印程序中的每一行执行? [英] How can I make Perl and Python print each line of the program being executed?
本文介绍了我怎样才能使Perl和Python打印程序中的每一行执行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道的bash -x script.sh
将执行脚本打印实际执行之前的每一行。
如何使Perl和Python间preters做?
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?
推荐答案
杰韦利::跟踪是Perl的模拟中,跟踪模块,是Python的。
Devel::Trace is the Perl analogue, the trace module is Python's.
这篇关于我怎样才能使Perl和Python打印程序中的每一行执行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文