Unattended Execution
During startup, options are initialized from $ENV{PERLDB_OPTS}. You may place the
initialization options TTY, noTTY, ReadLine, and NonStop there.
If your init file contains:
parse_options("NonStop=1 LineInfo=tperl.out AutoTrace");then your program will run without human intervention, putting trace
information into the file tperl.out.
(If you interrupt it, you’d better reset LineInfo to /dev/tty if you expect to see anything.)
The following options can be specified only at startup. To set them
in your init file, call parse_options("OPT=VAL").
TTYThe terminal to use for debugging I/O.
noTTYIf set, the debugger goes into
NonStopmode and will not connect to a terminal. If interrupted (or if control goes to the debugger via explicit setting of$DB::signalor$DB::singlefrom the Perl program), it connects to a terminal specified in theTTYoption at startup, or to a terminal found at runtime using theTerm::Rendezvousmodule of your choice.This module should implement a method named
newthat returns an object with two methods:INandOUT. These should return filehandles for the debugger to use as input and output. Thenewmethod should inspect an argument containing the value of$ENV{PERLDB_NOTTY}at startup, or "$ENV{HOME}/.perldbtty$$" otherwise. This file is not inspected for proper ownership or wide-open write access, so security hazards are theoretically possible.ReadLineIf false,
ReadLinesupport in the debugger is disabled in order to debug applications that themselves ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access