Use trap read debug, this will not be a good idea if the script is long or having a lot of logical steps

# bash debug line by line
set -x
trap read debug
Aug 16, 2010 by | 46 views
DevOpsRun.com is LIVE!

Articles for DevOps Geeks
MobaXterm Customization
CHMOD Explained!
Bash history powerful tips
Ubuntu bash from Windows