Linux Hint shows you how to debug a bash script.
How to debug a bash script?
In this article, we will learn how to debug a bash script in a Debian OS. When working with programming languages, there is a debugging tool integrated with them. However, in bash scripting, we do not have such a tool but we can make use of the command line to perform debugging.
How to debug a bash script?