How to enable debug in bash script

Append -x at the first line of script:
#!/bin/bash -x