How can I Debug a shell scripts and Perl scripting??
or How do you debug a shell scripting and perl scripting (
at the compile time error or run
time error) in Unix environment ?
Answer Posted / hema
Using sh -x script argument you can debug(-x option).
Bash shell offers debugging options which can be turn on or
off using
set command.
=> set -x : Display commands and their arguments as they are
executed.
=> set -v : Display shell input lines as they are read.
Hope this answers your question.
| Is This Answer Correct ? | 12 Yes | 1 No |
Post New Answer View All Answers
What is difference between shell and bash scripting?
Explain about return code?
How can you get the value of pi till a 100 decimal places?
How do I set bash as default shell mac?
Explain about debugging?
What is the command to find out users on the system?
Is shell scripting a programming language?
Is powershell a language?
What is a boot block?
What is a shell script? Can you name some of its advantages?
What is a batch file used for?
Tell something about the super block in shell scripting?
Why do we write bin bash in shell scripts?
Why is a script important?
Is shell scripting useful?