如何调试bash脚本?有任何方法来调试bash脚本吗?例如,打印某种执行日志的内容,如“调用第1行”、“调用第2行”等。
3 回答

呼唤远方
TA贡献1856条经验 获得超11个赞
set -e
set -x
set -n
strace
添加回答
举报
0/150
提交
取消