1 Summary of the BASH Debugger

The purpose of a debugger such as the BASH debugger is to allow you to see what is going on “inside” a bash script while it executes.

the BASH debugger can do four main kinds of things (plus other things in support of these) to help you catch bugs in the act:

Although you can use the BASH debugger to debug scripts written in BASH, it can also be used just as a front-end for learning more about programming in BASH. As an additional aid, the debugger can be used within the context of an existing script with its functions and variables that have already been initialized; fragments of the existing can be experimented with by entering them inside the debugger.