need to dubug my shell script

Hi,
I am working in "ksh". I want to debug my script. Like at the time of execuation i want to redirect all the statement execuatied in the sequence. How i can do that.

Regards,
Amar

use set -x at the beginning of your script and set +x at the end of the script.

execute the script while sending stdout to a log file.:smiley: