shell腳本斷點(diǎn)調(diào)試 如何調(diào)試Linux shell腳本?
如何調(diào)試Linux shell腳本?Bash腳本調(diào)試相當(dāng)麻煩,因?yàn)榧词箞?bào)告了錯(cuò)誤,錯(cuò)誤信息也不是很詳細(xì),只會(huì)顯示最終的錯(cuò)誤,而不會(huì)顯示源錯(cuò)誤。一般的調(diào)試方法是bash-x script name,它會(huì)
如何調(diào)試Linux shell腳本?
Bash腳本調(diào)試相當(dāng)麻煩,因?yàn)榧词箞?bào)告了錯(cuò)誤,錯(cuò)誤信息也不是很詳細(xì),只會(huì)顯示最終的錯(cuò)誤,而不會(huì)顯示源錯(cuò)誤。
一般的調(diào)試方法是bash-x script name,它會(huì)打印出詳細(xì)的執(zhí)行過程,然后根據(jù)這些內(nèi)容對(duì)腳本進(jìn)行分析和調(diào)試