How to raise and take care of shell scripts: Debugging

How to debug a shell script

I don't know about a real shell debugger (offering breakpoints, step by step execution ...), but the shell knows a number of tools to make it easier to debug a script: