1.

What is the best way to debug the shell script/program problems?

Answer»

Following are some common methods of DEBUGGING a script:

  • The SHELL script can be MODIFIED to include DEBUG statements to display the information that can be useful in identifying the problem.   
  • By setting -x in the script, we can ENABLE debugging.


Discussion

No Comment Found