Bash – verbose debugging When debugging bash scripts use: set -o xtrace to print out each line along with the regular output, as it is executed.