Bash debug

add lines on head

#!/bin/bash
set -x
trap read debug