Do a KIX32 YOURSCRIPT.KIX /d

This will put your script in DEBUG Mode..

If you know about where the script is having trouble, add a line:
DEBUG ON

And when the script gets to the above line, it will start line-by-line execution.

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's