DB
The DB module abstracts and provides all of the hooks into Perl internal debugging functionality, so that various implementations of Perl debuggers (or packages that want simply to get at the “privileged” debugging data) can all benefit from the development of this common code. The following “public” global names can be read by clients of this API, but should be considered read-only:
$DB_HASHStores key/data pairs in data files; equivalent to other hashing packages such as DBM, NDBM, ODBM, GDBM, and SDBM.
$DB::subName of current executing subroutine.
%DB::subThe keys of this hash are the names of all the known subroutines. Each value is an encoded string that has the
sprintfformat("%s:%d-%d", filename,fromline, toline).$DB::singleSingle-step flag. Will be true if the API will stop at the next statement.
$DB::signalSignal flag. Will be true if a signal was caught.
$DB::traceThis flag is set to true if the API is tracing through subroutine calls.
@DB::argsContains the arguments of current subroutine, or the
@ARGVarray if in the toplevel context.@DB::dblineList of lines in currently loaded file.
%DB::dblineActions in current file (keys are line numbers). The values are strings that have the
sprintfformat("%s\000%s", breakcondition, actioncode).$DB::packagePackage namespace of currently executing code.
$DB::filenameCurrently loaded filename.
$DB::subnameFully qualified name of currently executing subroutine.
$DB::linenoLine number that will be executed next.