You want to debug your script using an effective tool.
Resolution
Use a debugger such as DBWin32 and place MC.Debug statements at strategic points in your script. For more information about MC.Debug, see Mobile Channels Scripting Reference.