注意,你也可以使用sh -x script。 (2) 使用set -x和set +x对脚本进行部分调试。例如: #!/bin/bash #文件名: debug.sh for i in {1..6}; do set -x echo $i set +x ...
確定! 回上一頁