NAME

Egg::Plugin::Debug::Bar - Plugin to bury bar for debugging under contents for Egg.

SYNOPSIS

use Egg qw/ Debug::Bar /;

# dispatch.fcgi

#!/usr/local/bin/perl
BEGIN {
  $ENV{EXAMPLE_REQUEST_CLASS} ||= 'Egg::Request::FastCGI';
#  $ENV{EGGRELEASE_FCGI_LIFE_COUNT} = 0;
#  $ENV{EGGRELEASE_FCGI_LIFE_TIME}  = 0;
  $ENV{EGGRELEASE_FCGI_RELOAD}     = 1;
  };
use lib "/path/to/MyApp/lib";
use MyApp;
MyApp->handler;

DESCRIPTION

This plugin buries the bar for debugging under the upper part of contents at debug mode.

When it is operated by FastCGI, this is convenient. The useful function that can be used in other platforms is not provided.

$ENV{EGGRELEASE_FCGI_RELOAD} of the trigger script for FastCGI is set and used. Then, the button named Reboot appears in the bar. When the FastCGI process falls and it will be requested that this button be pushed when the application is developed next time, come do the reload of the project.

It comes do not to have to reactivate the WEB server when developing by this.

Especially, it is Module::Refresh in FastCGI. However, I think it is convenient when this plugin is used by Ki or do not exist.

Besides, it might be good to set $ENV{EGGRELEASE_FCGI_LIFE_COUNT} and $ENV{EGGRELEASE_FCGI_LIFE_TIME}, etc. Please see at the document of Egg::Request::FastCGI in detail.

SEE ALSO

Egg::Release, Egg::Request::FastCGI,

AUTHOR

Masatoshi Mizuno <lushe@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>.

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.6 or, at your option, any later version of Perl 5 you may have available.