Arijit Das wrote:
> Is there anything like set -x in Boure Sheel scripts
> in Perl which can print all the statements as they are
> executed?
You could debug with -d switch and then set trace on (t) and pipe
continue (|c) to the PAGER and have the output redirected to a file
by setting the PAGER ENV vrbl.
I'm not sure if there is any easy way to redirect it from the console
to a file using cmd.exe, but tcsh has no problem.
If you have tcsh or want to try playing with cmd.exe, you could try
something like this - first set the PAGER env vrbl to a redirect to log
file :
set PAGER=">dbg.log"
One or both of these may be needed to turn of GUI debugger:
set PERLDB_OPTS=
set PERL5DB=BEGIN { require 'perl5db.pl' }
Then start the script in debug mode and turn trace on, then pipe continue
command to the PAGER:
perl -d myscript.pl args
t
|c
The above works with tcsh, but so far I can't get it to work with cmd.exe.
There's a tcsh for win32 here: http://www.blarg.net/~amol/
if you want to try it.
--
,-/- __ _ _ $Bill Luebkert Mailto:[EMAIL PROTECTED]
(_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED]
/ ) /--< o // // Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_ http://dbecoll.tripod.com/ (My Perl/Lakers stuff)
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs