Devel::TraceMethods

Devel::TraceMethods is a Perl module for tracing module calls.
Download

Devel::TraceMethods Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • chromatic
  • Publisher web site:
  • http://search.cpan.org/~chromatic/Crypt-CipherSaber-1.00/lib/Crypt/CipherSaber.pm

Devel::TraceMethods Tags


Devel::TraceMethods Description

Devel::TraceMethods is a Perl module for tracing module calls. Devel::TraceMethods is a Perl module for tracing module calls.SYNOPSIS use Devel::TraceMethods qw( PackageOne PackageTwo );Devel::TraceMethods allows you to attach a logging subroutine of your choosing to all of the methods and functions within multiple packages or classes. You can use this to trace execution. It even respects inheritance.To enable logging, pass the name of the packages you wish to trace on the line where you use Devel::TraceMethods. It will automatically install logging for all functions in the named packages.You can also call import() after you have use()d the module if you want to log functions and methods in another package.You can specify per-package (or per-class) logging subroutines. For example: Devel::TraceMethods( SomePackage => &log_one, OtherPackage => &log_two );callback( $subroutine_reference )By default, Devel::TraceMethods uses Carp::carp() to log a method call. You can change this with the set_logger() function. Pass a subroutine reference as the only argument, and all subsequent calls to logged methods will use the new subroutine reference instead of carp().The first argument to the logging subroutine is the full name of the logged method. The rest of the arguments are copies of those being passed to the logged method. You can modify them in the logging subroutine without disturbing your call. Requirements: · Perl


Devel::TraceMethods Related Software