better bash debugging

2011-09-16 1 min read bash Linux
I was trying to debug some bash scripts yesterday and learnt something new 😉 There are lot of things in bash that you can use to debug and to start with you can enable xtrace mode as follows: set -x With this set you will see that all the commands are printed along with all other information as they are executed. This you can do for any line or for the function or for the whole script. Continue reading