Devel::ebug::HTTP - Webserver front end to Devel::ebug
# it's easier to use the 'ebug_httpd' script use Devel::ebug::HTTP; my $server = Devel::ebug::HTTP->new(); $server->port(8080); $server->program($filename); $server->run();
In addition to the accessors defined by the HTTP::Server::Simple::CGI, the following get/set chanined accessors are defined.
The name of the program we're running. When run is called an instance of Devel::ebug is created that executes this program.
run
The Devel::ebug instance that this front end is displaying.
Essentially this module is a HTTP::Server::Simple::CGI subclass. The main method is the handle_request method which is called for each request to the websever.
handle_request
Method that's called each individual request that's made to the server from the web browser. This dispatches to all the other methods.
Returns true if we should skip the current request and return a 404. Currently used for not creating favicons.
Create a new ebug instance and store it via the ebug accessor.
ebug
Tell the ebug process what's going on.
Create everything that's sent to the client. Calls the other methods documented below.
Create the html.
Create the marked up perl code.
Return a string that contains the http header for the html that's been passed (including the server status code.)
Return the template toolkit template.
1 POD Error
The following errors were encountered while parsing the POD:
=over without closing =back
To install Devel::ebug, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::ebug
CPAN shell
perl -MCPAN -e shell install Devel::ebug
For more information on module installation, please visit the detailed CPAN module installation guide.