How to find out Errors in FTP Scripts

Hi

Please let me know is there any way through which I can find out errors & do debugging in FTP scripts.

Thanks
Sourabh
TCS

You could start with something along the lines of ftp error trapping