NAME
CGI::Application::Plugin::DebugMessage - show the debug message
SYNOPSIS
-- 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>
DESCRIPTION
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.
METHODS
debug
$a->debug('USER' => $user);
set the debug message. Debug message can be any reference, it will be dumped with Data::Dumper.
debug_ocode
$a->debug_ocode('euc');
set code for outputting. When set, debug message is converted with Jcode.
SEE ALSO
CGI::Application, Sledge::Plugin::DebugScreen
AUTHOR
Makio Tsukamoto, <tsukamoto@gmail.com>
COPYRIGHT AND LICENSE
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.