3.1 Starting your script

After invoking the debugger you should be on the first stoppable line of your program to be debugged. At this point you can issue debugger commands to set breakpoints (see Setting breakpoints), or watchpoints (see Setting watchpoints), or start continue the execution of the program (see Resuming Execution).

restart [args]
run [args]
R [args]

Use the restart command to restart your script under the BASH debugger. Without any arguments, the script name and parameters from the last invocation are used. The BASH debugger tries to maintain the settings, watchpoints, breakpoints, actions and so on. Internally it uses line numbers and filenames to record he position of interesting places in your program; so if your program changes some or all of these numbers may be off. Environment variable DBG_RESTART_FILE is and a temporary file are used to signal a restart, so you shouldn’t uset DBG_RESTART_FILE (or any environment variable starting with BASHDB_.