NAME
Padre::Debugger - client side code for perl debugger
SYNOPIS
use Padre::Debugger;
my $debugger = Padre::Debugger->new(host => $host, port => $port);
$debugger->listen;
# this is the point where the external script need to be launched
# first setting
# $ENV{PERLDB_OPTS} = "RemotePort=$host:$port"
# then running
# perl -d script
my $out = $debugger->get;
$out = $debugger->step_in;
$out = $debugger->step_over;
my ($module, $file, $row, $content, $prompt) = $debugger->step_in;
my ($module, $file, $row, $content, $prompt, $return_value) = $debugger->step_out;
my ($value, $prompt) = $debugger->get_value('$x');
Other planned methods:
$debugger->set_watch
$debugger->set_breakpoint
$debugger->remove_watch
$debugger->remove_breakpoint
$debugger->get_stack_trace
$debugger->run (c in the debugger)
$debugger->execute_code
$debugger->watch_variable (to make it easy to display values of variables)
DESCRIPTION
It is currently in the Padre namespace but it does not have any Padre related code so at one point it will be renamed. For now I want it to be out to be tested by the CPAN Testers.
See Also
COPYRIGHT
Copyright 2008 Gabor Szabo. http://www.szabgab.com/
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.
WARRANTY
There is no warranty whatsoever. If you lose data or your hair because of this program, that's your problem.
CREDITS and THANKS
Originally started out from the remoteport.pl script from Pro Perl Debugging written by Richard Foley.