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

NAME

Devel::hdb::App::SourceFile - Get Perl source for the running program

DESCRIPTION

Registers routes for getting the Perl source code for files used by the debugged program.

Routes

/sourcefile

This route requires one parameter 'f' , the filename to get the source for. It returns a JSON-encoded array of arrays. The first-level array has one element for each line in the file. The second-level elements each have 2 elements. The first is the Perl source for that line in the file. The second element is 0 if the line is not breakable, and true if it is.

/loadedfiles

Returns a JSON-encoded array of files names loaded by the debugged program. This list also contains the files used by the debugger, and the file-like entities for "eval"ed strings.

SEE ALSO

Devel::hdb

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.