Steffen Ullrich > Net-Inspect-0.21 > Net::Inspect::Debug

Download:
Net-Inspect-0.21.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: Net-Inspect-0.307

NAME ^

Net::Inspect::Debug - provides debugging facilities for Net::Inspect library

DESCRIPTION ^

the following functionality is provided:

debug(msg,[@args])

if $DEBUG is set prints out debugging message, prefixed with "DEBUG" and info about calling function and code line. If @args are given msg is considered and format string which will be combined with @args to the final message.

This function is exported by default.

xdebug(object,...)

Same es debug, but prefixed with object. Usually overwritten in classes to show info about object.

This function can be exported on demand.

trace(msg,[@args])

if $TRACE{'*'} or $TRACE{$$pkg}' is set prints out trace message, prefixed with "[$pkg]". $pkg is the last part of the package name, where trace got called. If @args are given msg is considered and format string which will be combined with @args to the final message.

This function is exported by default.

xtrace(object,...)

Same es trace, but prefixed with object. Usually overwritten in classes to show info about object.

This function can be exported on demand.

$DEBUG

If true debugging messages will be print. Can be explicitly imported, but is not exported by default.

%TRACE

If true for '*' or $pkg (see trace) trace messages will be print. Can be explicitly imported, but is not exported by default.

1;

syntax highlighting: