"set -x" enables debug-mode, for anyone else heading off to Google to investigate.
So given the script:
#!/bin/bash
set -x
echo "Hello World"
The output would be: + echo 'Hello World!'
Hello World!
Where the "+ ..." is the command executed. And it can be disabled with "set +x".