SDLx::GUI::Debug - Centralized debug utility
version 0.002
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.
debug()
SDLX_GUI_DEBUG
debug( @stuff );
Output @stuff on STDERR, with a timestamp and the caller sub.
@stuff
STDERR
Jerome Quelin <jquelin@gmail.com>
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.
To install SDLx::GUI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SDLx::GUI
CPAN shell
perl -MCPAN -e shell install SDLx::GUI
For more information on module installation, please visit the detailed CPAN module installation guide.