Devel::hdb::App::SourceFile - Get Perl source for the running program
Registers routes for getting the Perl source code for files used by the debugged program.
- GET /source
Get a list of all the source code files loaded by the application. This list also contains the files used by the debugger, and the file-like entities for "eval"ed strings.
Returns 200 an a JSON-encoded array containing hashes with these keys: filename => Pathname of the file href => URL to get the source code information for this file
- GET /source/<filename>
Get source code information for the given file. 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.
Anthony Brummett <firstname.lastname@example.org>
Copyright 2014, Anthony Brummett. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.