Friday, July 15, 2005

debugging

If you are only interested in debugging rather than logging, then
you might look at setting PS4 to something along the lines of
PROGNAME=$(basename $0)
PS4="TRACE \$PROGNAME \$FUNCNAME \$LINENO: "
(built-in shell variables may vary) and you can add some timing
information if you really care. PS4 is printed when tracing with
set -x or -v.

0 Comments:

Post a Comment

<< Home