You can run the BASH debugger in various alternative modes—for example, in batch mode or quiet mode.
-h | --help
¶This option causes the BASH debugger to print some basic help and exit.
-V | --version
¶This option causes the BASH debugger to print its version number, no-warranty blurb, and exit.
-A | --annodate level
¶Add additional output which allows front-ends to track what’s going on without having to poll for such vital information. The default annotation level is 0 (none). If you are running inside GNU Emacs using the Emacs code from this package, an annotation level 3 when set will allow for automatic tracking of frames and breakpoints. See Annotation Level (‘set annotate’).
-c | --command cmd
¶Run the string instead of running a script
-B | --basename
¶This option causes the BASH debugger to print its version number and no-warranty blurb, and exit.
-n | --nx | --no-init
¶Do not execute commands found in any initialization files. Normally, BASH executes the commands in these files after all the command options and arguments have been processed. See Command files.
-q | --quiet
¶“Quiet”. Do not print the introductory and copyright messages. These messages are also suppressed in batch mode.
-t | --terminal | --tty tty
¶Debugger output usually goes to a terminal rather than STDOUT
which the debugged program may use. Determination of the tty or
pseudo-tty is normally done automatically. However if you want to
control where the debugger output goes, use this option.
If you want output to go to C<STDOUT>, use C<&1>. Note: the C<&> may have to be escaped or quoted to avoid shell interpretation with forking.
-x | --eval-command
¶execute debugger commands from cmdfile.
-L | --library directory
Set directory where debugger files reside to directory. The
default location is ../lib/bashdb
relative to the place that
the bashdb script is located. For example if bashdb is located in
/usr/bin/bashdb
, the default library location will be
/usr/lib/bashdb
which may or may not exist. If it doesn’t
you’ll get an error when you run bashdb. Only if the default location
is incorrect, should you need to use the -L
option.
-T | --tempdir directory
¶Set directory to use for writing temporary files.