CGI::Application::Plugin::DebugMessage - show the debug message


CGI-Application-Plugin-DebugMessage documentation  | view source Contained in the CGI-Application-Plugin-DebugMessage distribution.

Index


NAME

Top

CGI::Application::Plugin::DebugMessage - show the debug message

SYNOPSIS

Top

  -- 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

Top

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

Top

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

Top

CGI::Application, Sledge::Plugin::DebugScreen

AUTHOR

Top

Makio Tsukamoto, <tsukamoto@gmail.com>

COPYRIGHT AND LICENSE

Top


CGI-Application-Plugin-DebugMessage documentation  | view source Contained in the CGI-Application-Plugin-DebugMessage distribution.