Maypole::Plugin::Trace

Trace calls in Maypole
Download

Maypole::Plugin::Trace Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • David Baird
  • Publisher web site:
  • http://search.cpan.org/~davebaird/Tree-Authz-0.03/lib/Tree/Authz.pm

Maypole::Plugin::Trace Tags


Maypole::Plugin::Trace Description

Trace calls in Maypole Maypole::Plugin::Trace is a Perl module to trace calls in Maypole.SYNOPSIS use Maypole::Application qw/Trace/; # options: __PACKAGE__->trace_level(3); __PACKAGE__->only_trace_exported(1);Prints a trace of method entries and exits to STDERR.Requires the latest version of Maypole in SVN, or 2.11 when it's released.trace_level __PACKAGE__->trace_level(1);The default trace_level is set to 2.The trace level must be set before calling setup.Level Output 0 none 1 method entry and exit 2 as above, but prints method arguments and return values 3 uses Data::Dumper to expand method arguments and return values within Exported methods 4 uses Data::Dumper to expand method arguments and return values within all methods 5 as 2, but also reports private methods (single leading _ in name) 6 as 3, but also reports private methods (single leading _ in name) 7 as 4, but also reports private methods (single leading _ in name)Tracing is implemented for packages in the Maypole namespace, and in your application's namespace.The characters E: are printed in the left margin to indicate when an exported method is being processed.At trace level 2, objects, e.g. in class Foo, are represented as Foo(OBJECT). This is to avoid potential overloaded stringification, which causes deep recursion errors.Note: trace output is only generated for exported methods when they are called via Maypole's own controller mechanism. So, for example, if a custom method directly calls an exported method, the entry to and exit from the exported method will not be registered in the trace output. This is a known bug, suggestions for how to fix it would be great. Requirements: · Perl


Maypole::Plugin::Trace Related Software