From 8daa27ba4d05254cbe23563c5675e91f2e45bae7 Mon Sep 17 00:00:00 2001 From: mertz Date: Fri, 19 Sep 2003 12:40:47 +0000 Subject: - man page (pod) added --- Perl/Zinc/TraceErrors.pm | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/Perl/Zinc/TraceErrors.pm b/Perl/Zinc/TraceErrors.pm index a56586c..b88b5f4 100644 --- a/Perl/Zinc/TraceErrors.pm +++ b/Perl/Zinc/TraceErrors.pm @@ -92,4 +92,58 @@ sub Tk::Zinc::WidgetMethod { 1; +__END__ + +=head1 NAME + +Tk::Zinc::TraceErrors - A module to trace all Tk::Zinc method calls which generate an error + +=head1 SYNOPSIS + +use Tk::Zinc::TraceErrors; + +or + +perl -MTk::Zinc::TraceErrors YourZincBasedScript.pl + +=head1 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" + +=over 6 + +=item * the source filename where the method has been invoked + +=item * the line number in the source file + +=item * the TkZinc method name + +=item * the list of arguments in a human-readable form + +=item * the error message + +=back + +=head1 AUTHOR + +D.Etienne and C.Mertz + +=head1 CAVEAT + +This module cannot be used when Tk::Zinc::Trace is already in use. + +=head1 COPYRIGHT + +See Tk::Zinc copyright; LGPL + +=head1 SEE ALSO + +L, L. L. + +=cut -- cgit v1.1