| 1 | package DB; | ||
| 2 | |||
| 3 | # Documentation is after __END__ | ||
| 4 | |||
| 5 | 12 | ▶ | use vars qw( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | $OP_addr | ||
| 7 | $OS_STARTUP_DIR | ||
| 8 | $caller | ||
| 9 | $eval_opts | ||
| 10 | $eval_str | ||
| 11 | $event | ||
| 12 | $fall_off_on_end | ||
| 13 | $init_dollar0 | ||
| 14 | $ready $tid | ||
| 15 | $ret | ||
| 16 | $running | ||
| 17 | $stop | ||
| 18 | $bt_truncated | ||
| 19 | %HAVE_MODULE | ||
| 20 | @clients | ||
| 21 | @ret | ||
| 22 | 12 | @saved); | |
| 23 | |||
| 24 | 12 | ▶ | use Cwd; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 25 | 12 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | 12 | ▶ | no warnings 'once'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 27 | # these are hardcoded in perl source (some are magical) | ||
| 28 | |||
| 29 | 12 | $DB::sub = ''; # name of current subroutine | |
| 30 | 12 | $DB::single = 0; # single-step flags. See constants at the | |
| 31 | # top of DB/Sub.pm | ||
| 32 | 12 | $DB::signal = 0; # signal flag (will cause a stop at the next line) | |
| 33 | 12 | $DB::stop = 0; # value of last breakpoint condition evaluation | |
| 34 | |||
| 35 | 12 | @DB::dbline = (); # list of lines in currently loaded file | |
| 36 | 12 | %DB::dbline = (); # actions in current file (keyed by line number) | |
| 37 | |||
| 38 | # other "public" globals | ||
| 39 | |||
| 40 | 12 | @ini_INC = @INC; # Save the contents of @INC before they are | |
| 41 | # modified elsewhere. | ||
| 42 | 12 | @ini_ARGV = @ARGV; | |
| 43 | 12 | $ini_dollar0 = $0; | |
| 44 | 12 | $OS_STARTUP_DIR = getcwd; | |
| 45 | |||
| 46 | 12 | @DB::args = (); # arguments of current subroutine or @ARGV array | |
| 47 | 12 | $DB::fall_off_on_end = 0; | |
| 48 | 12 | @DB::clients = (); | |
| 49 | 12 | $eval_opts = {}; # Options controlling how the client wants the | |
| 50 | # eval to take place | ||
| 51 | 12 | $DB::tid = undef; # Thread id | |
| 52 | |||
| 53 | 12 | $DB::eval_str = ''; # Client wants to eval this string | |
| 54 | |||
| 55 | 12 | $DB::package = ''; # current package space | |
| 56 | 12 | $DB::filename = ''; # current filename | |
| 57 | 12 | $DB::subname = ''; # currently executing sub (fully qualified name) | |
| 58 | |||
| 59 | # This variable records how many levels we're nested in debugging. Used | ||
| 60 | # Used in the debugger prompt, and in determining whether it's all over or | ||
| 61 | # not. | ||
| 62 | 12 | $DB::level = 0; # Level of nested debugging | |
| 63 | |||
| 64 | 12 | $DB::bitmask = ''; | |
| 65 | 12 | $DB::caller = []; | |
| 66 | 12 | $DB::evaltext = ''; | |
| 67 | 12 | $DB::hasargs = ''; | |
| 68 | 12 | $DB::hinthash = ''; | |
| 69 | 12 | $DB::hints = ''; | |
| 70 | 12 | $DB::is_require = ''; | |
| 71 | 12 | $DB::lineno = ''; # current line number | |
| 72 | 12 | $DB::subroutine = ''; | |
| 73 | 12 | $DB::wantarray = ''; | |
| 74 | |||
| 75 | 12 | $DB::event = undef; # The reason we have entered the debugger | |
| 76 | |||
| 77 | 12 | $DB::VERSION = '1.1.0'; | |
| 78 | |||
| 79 | # initialize private globals to avoid warnings | ||
| 80 | |||
| 81 | 12 | $DB::running = 1; # are we running, or are we stopped? | |
| 82 | } | ||
| 83 | |||
| 84 | 12 | 1; | |
| 85 | |||
| 86 | __END__ | ||