You'll need a running Linux box. It doesn't matter which distribution you use, since all Linux distributions are shipped nowadays with the bash shell.
Download and install Visual Studio Code, which is free from Microsoft. You can download it from here: https://code.visualstudio.com/.
You can use VS Code as an editor instead of vim and nano; it's up to you.
We prefer to use VS Code because it has a lot of features such as code completion, debugging, and many more besides.
Install bashdb, which is a required package for the bash debug plugin. If you are using a Red Hat-based distribution, you can install it like this:
$ sudo yum install bashdb
If you are using a Debian-based distribution, you can install it like this:
$ sudo apt-get install bashdb
Install the plugin for VS Code, called bash debug, from https://marketplace.visualstudio.com/items?itemName=rogalmic.bash-debug. This plugin will be used to debug bash scripts.
The source code for this chapter can be downloaded here: