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

What are script files?

548


In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?

636


What is a shell environment?

572


How does shell scripting work?

609


Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.

693






Is powershell a language?

561


How to print the first array element?

550


What is bourne shell scripting?

531


What is the syntax of "nested if statement" in shell scripting?

629


What is console line?

570


What is sudo command?

548


how to get part of string variable with echo command only?

589


What is bash coding?

495


one folder contains lot of students name but I want to fetch hello with every student name individually using shell script

511


What language is bash?

489