Devel::Command::HelloWorld - example debugger command extension


Devel-Command documentation  | view source Contained in the Devel-Command distribution.

Index


NAME

Top

Devel::Command::HelloWorld - example debugger command extension

SYNOPSIS

Top

  # in .perldb:
  use Devel::Command;
  sub afterinit {
     Devel::Command->install;
  }

  #In the debugger:
  DB<1> helloworld
  Hello, world!
  DB<2>

DESCRIPTION

Top

Devel::Command::HelloWorld is an example command plugin for Devel::Command. It demonstrates the basic code needed to implement a command that will automatically be loaded and installed by Devel::Command.

IMPLEMENTATION

Top

command

This example command follows the standard way of implmenting a Devel::Command command; it subclasses the base Devel::Command module, and implements a command subroutine. This is all that is necessary for Devel::Command to find and install the command.

This drastically simplifies the code needed to implement a command; as long as a sub command is defined, everything else is taken care of automatically.

SEE ALSO

Top

perl5db.pl, Devel::Command

AUTHOR

Top

Joe McMahon, <mcmahon@ibiblio.org>

COPYRIGHT AND LICENSE

Top


Devel-Command documentation  | view source Contained in the Devel-Command distribution.