set -o xtrace. or bash -x myscript.sh. This works with standard /bin/sh as well IIRC (it might be a POSIX thing then).
確定! 回上一頁