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 does path stand for?
How to print all array elements and their respective indexes?
How would you compare the strings in a shell script?
How to open a read-only file in the shell?
how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com
What is path variable bash?
Can shell script run on windows?
What are the advantages of shell scripting?
c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command
What is sudo command?
What is the default shell of solaris?
What is the difference between break and continue commands?
What is bash coding?
Explain about return code?
What is basename in shell script?