Net::Inspect::Debug - provides debugging facilities for Net::Inspect library
the following functionality is provided:
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.
Same es debug, but prefixed with object. Usually overwritten in classes to show info about object.
This function can be exported on demand.
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.
Same es trace, but prefixed with object. Usually overwritten in classes to show info about object.
This function can be exported on demand.
If true debugging messages will be print. Can be explicitly imported, but is not exported by default.
If true for '*' or $pkg
(see trace
) trace messages will be print.
Can be explicitly imported,
but is not exported by default.
1;