Re: How to get a full trace of a prog's execution?



kj:

It would be extremely useful to be able to toggle on something akin
to "Trace Mode" in the Perl debugger, sending the trace to some
user-specified file. (Since the bug shows up sporadically and
unpredictable, it is not practical to try to find it by using the
Perl debugger.) Is there some other way to get such Trace output?

The Perl debugger provides a non-interactive environment as well.
You can use this to trace a script and write the output into a file:

$ export PERLDB_OPTS="NonStop AutoTrace LineInfo=dbg.out"
$ perl -d <yourscript>.pl

perldoc perldebug (section "Configurable Options")

Greetings, Ferry

--
Ing Ferry Bolhar
Magistrat der Stadt Wien - MA 14
A-1010 Wien
E-Mail: bol@xxxxxxxxxxxxxxxxx


.