Stick a "set -x" line at the top of each script, just after the "#!" lines. This will enable line-by-line tracing of execution.