NAME
SDLx::GUI::Debug - Centralized debug utility
VERSION
version 0.002
DESCRIPTION
To facilitate debugging, this module provides a single function to log traces. However, the debug()
function will not output anything unless the environment variable SDLX_GUI_DEBUG
is set to a true value. If it isn't set or set to a false value, then the function will be optimized out.
METHODS
debug
debug( @stuff );
Output @stuff
on STDERR
, with a timestamp and the caller sub.
AUTHOR
Jerome Quelin <jquelin@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.