Can we debug shell script?

Can we debug shell script?
Answer
The debugging options available in the Bash shell can be switched on and off in multiple ways. Within scripts, we can either use
the set command or add an option to the shebang line. However, another approach is to explicitly specify the debugging options in the command-line while executing the script.
 

Tìm kiếm

Back
Top