Possible Duplicate:
How can I make Perl and Python print each line of the program being executed?
I'm looking for an equivalent of sh -x
for Perl and Python.
Possible Duplicate:
How can I make Perl and Python print each line of the program being executed?
I'm looking for an equivalent of sh -x
for Perl and Python.
(Excerpted from Programming Perl’s chapter on the debugger.)
If your .perldb
file contains:
parse_options("NonStop=1 LineInfo=tperl.out AutoTrace");
then your program will run without human intervention, putting trace
information into the file tperl.out
. (If you interrupt it, you’d better
reset LineInfo
to /dev/tty
if you expect to see anything.)