2012-01-12 14 views
0

可能性の重複:
How can I make Perl and Python print each line of the program being executed?"SH -x" と等価

私はPerlやPythonのためのsh -xの同等を探しています。

+1

参照[この] [1]前の質問 [1]:のhttp:// stackoverflowの.com/questions/2872089/perl-and-python-print-each-of-the-program-being-executed –

+1

http://stackoverflow.com/questions/2872089/how -can-i-make-perl-and-python-print-program実行中の各行 質問済み –

答えて

7

は(デバッガ上プログラミングPerlのの章より抜粋。)

をご.perldbファイルが含まれている場合:

parse_options("NonStop=1 LineInfo=tperl.out AutoTrace"); 

を、あなたのプログラムは、人間の介入なしで実行されます、にトレース 情報を入れますファイルtperl.out。 (あなたがそれを中断した場合、あなたは何を見ることを期待している場合 良くは/dev/ttyLineInfoをリセットしたい。)