Mojo::Debugbar - A nice Debugbar that helps developers using Mojolicious framework
use Mojo::Debugbar; my $debugbar = Mojo::Debugbar->new(app => $app, config => { hide_empty => 0, monitors => [ 'Mojo::Debugbar::Monitor::Request', 'Mojo::Debugbar::Monitor::DBIx', 'Mojo::Debugbar::Monitor::Template', 'Mojo::Debugbar::Monitor::ValidationTiny', ] }); $debugbar->start; ... $debugbar->stop;
Mojo::Debugbar is a package that helps you collect some metrics for your Mojolicious app
Mojo::Debugbar inherits all attributes from Mojo::Base.
Mojo::Debugbar inherits all methods from Mojo::Base and implements the following new ones.
$debugbar->start;
Renders the collected metrics as html.
Starts all the monitors.
$debugbar->stop;
Stops all the monitors.
Mojolicious, Mojolicious::Plugin::Debugbar, Mojolicious::Guides, https://mojolicious.org.
To install Mojo::Debugbar, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojo::Debugbar
CPAN shell
perl -MCPAN -e shell install Mojo::Debugbar
For more information on module installation, please visit the detailed CPAN module installation guide.