Adding Debug Traps to Shell scripts

If having issues trying to run or start a shell script, then add the following to the top of your code:

#!/bin/bash
set -x
trap read debug

< YOUR CODE HERE >