My suggestion would be to run your script like this `bash -x your_script.sh` when (and only when) you need to debug something.
My suggestion would be to run your script like this `bash -x your_script.sh` when (and only when) you need to debug something.