How to debug the problems encountered in the shell script/program?



How to debug the problems encountered in the shell script/program?..

Answer / Sadanand Sati

Debugging a shell script can be done by using techniques such as adding print statements, using the set -x flag to display commands being executed, and checking for error messages. Additionally, tools like strace and gdb can be used for more advanced debugging.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Shell Script Interview Questions

What does egrep mean?

1 Answers  


What is a boot block?

1 Answers  


What is the first line in a shell script?

1 Answers  


How can the contents of a file inside jar be read without extracting in a shell script?

1 Answers  


What does $@ mean bash?

1 Answers  


what is info area how many types?

1 Answers  


What are environment variables?

2 Answers  


if i have 2 files file1 and file2.... file1 contains 2 columns like b a 11 aa 12 as 13 ad 15 ag 11 ar 13 ah 15 ak file2 contains b c 10 ds 11 at 15 gh 15 jk 13 iu 11 fg 13 yy can any 1 give me the program to display in this way? a b c aa 11 at ar 11 fg ad 13 iu ah 13 yy ag 15 gh ak 15 jk

3 Answers  


How to create environment variables?What are the conditions for creating variables?

1 Answers   Infosys, Wipro,


Explain about debugging?

1 Answers  


What is bash shell command?

1 Answers  


Explain about gui scripting?

1 Answers  


Categories