Debug - Perl extension for placing "debug" messages throughout your code,
which will be displayed - if enabled - to
STDERR at program termination.
This enables or disables debug output. Usually at the "top" of the code.
0 disables debug output - which can occur anytime after being
This is the "diagnostic" creation function. It is passed a variable whose value is wanted to "be checked" or otherwise examined.
The "diagnostic" part of the output is the "two back" back trace, something like:
which is sub
funcb called by sub
funca with a scalar.
References will be needed to display non-scalars properly. For example:
my %k = ('key',1); Debug::debug(\%k);
Output would be like:
(A single back trace means
debug() was in "main".)
Copyright (C) 2018 by Andova Begarin
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.22.3 or, at your option, any later version of Perl 5 you may have available.