The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Tk::Zinc::TraceErrors - A module to trace all Tk::Zinc method calls which generate an error

SYNOPSIS

use Tk::Zinc::TraceErrors;

or

perl -MTk::Zinc::TraceErrors YourZincBasedScript.pl

DESCRIPTION

When loaded, this module overloads a Tk mechanism so that every Tk::Zinc method call will be traced if it provokes an error. The execution will then continue.

This module can be very effective for debugging and application, specially when Tk gives an unusuable error message such as ".... errors in Tk.pm line 228"

  • the source filename where the method has been invoked

  • the line number in the source file

  • the TkZinc method name

  • the list of arguments in a human-readable form

  • the error message

AUTHOR

D.Etienne <etienne@cena.fr> and C.Mertz <mertz@cena.fr>

CAVEAT

This module cannot be used when Tk::Zinc::Trace is already in use.

COPYRIGHT

See Tk::Zinc copyright; BSD

SEE ALSO

Tk::Zinc(3pm), Tk::Zinc::Trace(3pm). Tk::Zinc::Debug(3pm).