The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Devel::hdb::App::PackageInfo - Get information about packages and subroutines

Routes

/pkginfo/<package>

Returns a JSON-encoded hash with two keys: "packages" containing a list of namespaces within the requested package, and "subs" containing a list of debuggable subroutine names in the requested package. Subroutines are considered debuggable is there is an entry in %DB::sub for them.

/subinfo/<subname>

Given a fully-qualified subroutine name, including package, in the format Package::SubPackage::subroutine, returns a JSON-encoded hash with these keys: file => Filename this subroutine was defined start => Line number in the file the subroutine starts end => Line in the file the subroutine ends source => Original source file of the subroutine text source_line => Line in the original source file

source and source_line can differ from file and start in the case of subroutines defined inside of a string eval. In this case, "file" will be a string like (eval 23)[/some/file/path/module.pm:123] representing the text that was eval-ed, and "start" will be the line within that text where the subroutine was defined. "source" would be /some/file/path/module.pm showing where in the original source code the text came from, and "source_line" would be 123, the line in the original source file.

SEE ALSO

Devel::hdb, Devel::hdb::DB::PackageInfo

AUTHOR

Anthony Brummett <brummett@cpan.org>

COPYRIGHT

Copyright 2013, Anthony Brummett. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.