Debugging Linux Bash Scripts

While writing bash scripts we generally expects some results and provide these results to other scripts. But things goes not well as we expect. So...