You are here

how to step through a shell script

so you wrote a shell script, likely in bash, and it is pretty long and now you need to step through it. here is how:

at the top of your shell script under your hash bang line and before your code you add these 2 lines

set -x
trap read debug