Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How many fields are present in a crontab file and what does each field specify?

1179


How do you know which shell I am using?

1083


How do I run a script from command prompt?

1133


What is basename in shell script?

1096


How to open a read-only file in the shell?

1175


Is shell a part of kernel?

1110


What is a shell made of?

997


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.

1320


How to calculate the number of passed arguments?

1163


How would you compare the strings in a shell script?

1027


When should shell programming/scripting not be used?

1210


What is in a script?

1056


What does $1 mean in bash?

1134


What lives in a shell?

1003


Why is shell scripting important?

1079