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
How many fields are present in a crontab file and what does each field specify?
How do you know which shell I am using?
How do I run a script from command prompt?
What is basename in shell script?
How to open a read-only file in the shell?
Is shell a part of kernel?
What is a shell made of?
Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.
How to calculate the number of passed arguments?
How would you compare the strings in a shell script?
When should shell programming/scripting not be used?
What is in a script?
What does $1 mean in bash?
What lives in a shell?
Why is shell scripting important?