CGI::Application::Plugin::DebugMessage - show the debug message
-- in your CGI::Application module -- package Your::App; use base qw(CGI::Application); use CGI::Application::Plugin::DebugMessage; -- in your cgi -- use Your::App; $_ = Your::App->new; $_->debug('debug message'); # add debug message as string $_->debug([data1, data2, data3]); # add debug message as array ref $_->run; # debug messages are put before </html>
CGI::Application::Plugin::DebugMessage is debug utility for CGI::Application. You can see any debug messages in your html footer, as Sledge::Plugin::DebugScreen does.
$a->debug('USER' => $user);
set the debug message. Debug message can be any reference, it will be dumped with Data::Dumper.
$a->debug_ocode('euc');
set code for outputting. When set, debug message is converted with Jcode.
CGI::Application, Sledge::Plugin::DebugScreen
Makio Tsukamoto, <tsukamoto@gmail.com>
Copyright (C) 2006 by Makio Tsukamoto
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.
To install CGI::Application::Plugin::DebugMessage, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Application::Plugin::DebugMessage
CPAN shell
perl -MCPAN -e shell install CGI::Application::Plugin::DebugMessage
For more information on module installation, please visit the detailed CPAN module installation guide.