38. 如何调试 Shell脚本?38. 如何调试 Shell脚本?使用 -x’ 数(sh -x myscript.sh)可以调试 Shell脚本。 另一个种方法是使用 -nv 参数(sh -nv myscript.sh)。