What are the three main forms of enabling debugging in a
shell script?

Answer Posted / neha c

set -vx
v:- verbose option(this option outputs every line of the
script onto the standard output console)
x:- this option substitutes every variable's value which is
used in the shell script.

To turn off the debugging option, use set +vx.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

874


How to check if a directory exists?

830


How do we create command aliases in a shell?

760


What is a scripting language simple definition?

844


What is the syntax of while loop in shell scripting?

822


How do you debug a script?

808


What is the command to find out today's date?

889


What is bash coding?

710


is this growing field and what is average package in this?

2108


Explain about echo command?

883


State the advantages of shell scripting?

854


Write a script to print the first 10 elements of fibonacci series.

2114


What is a boot block?

786


How to use arguments in a script?

818


How are shells born?

755