On Tue, Jul 29, 2003 at 11:45:29AM -0400, Harter, Douglas wrote:
> Is there a way to display to STDOUT what each statement looks like
> as it executes without going into the debugger? On our old system
> we called this VERIFY. You can do it in bash by doing a set -x.
It's quite a bit more verbose in Perl:
% perldoc perlrun
If you're just trying to get a print out of each line of Perl
code as it executes, the way that "sh -x" provides for shell
scripts, you can't use Perl's -D switch. Instead do this
[ snip some LONG command lines ]
See perldebug for details and variations.
I think I'd write a script before typing any of that a second time.
#!/usr/bin/perl
#
# traceperl - something like set -x
#
$ENV{PERLDB_OPTS} = "NonStop AutoTrace frame=2";
exec $^X, "-dS", @ARGV;
die "couldn't re-exec '$^X': $!";
By the way, Pennsylvania is a *lovely* state.
Keep up the good work.
--
Steve
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]