@darkuncle
One I find really helpful (but missing here) is 'set -x', that prints every line during execution.
@b0rk