The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

#!perl
BEGIN {
$ENV{CATALYST_ENGINE} = 'HTTP';
$ENV{CATALYST_SCRIPT_GEN} = 3;
}
use strict;
use FindBin;
use lib 'lib';
my $port = 8080;
my $filename = shift;
die "Usage: ebug_http filename\n" unless $filename;
my $ebug = Devel::ebug->new();
$ebug->program($filename);
$ebug->load;
$Devel::ebug::HTTP::ebug = $ebug;
#$^O =~ /mswin32/i and system("start http://localhost:$port/#top");
#$^O =~ /darwin/i and system("open http://localhost:$port/#top &");
Devel::ebug::HTTP->run($port);
1;
__END__
=head1 NAME
ebug_http - A simple, extensible web Perl debugger
=head1 SYNOPSIS
% ebug_http calc.pl
=head1 DESCRIPTION
ebug is a web-based front end to L<Devel::ebug>. It is a simple Perl
debugger. When run, it will report back how to contact its front page.
=head1 SEE ALSO
L<Devel::ebug>
=head1 AUTHOR
Leon Brocard, C<< <acme@astray.com> >>
=head1 COPYRIGHT
Copyright (C) 2005, Leon Brocard
This program is free software; you can redistribute it or modify it
under the same terms as Perl itself.