Gang's Tech Stuff

Posts Tagged ‘debug

Debug mode in SHELL scripts

Posted by: Gangadhar on: December 17, 2008

To run a shell script in DEBUG mode, put “-x” option at the end of the interpreter in the first line. #!/usr/local/bin/sh –x This is going to print the steps the compiler goes through.


Follow

Get every new post delivered to your Inbox.