Scripts do not always do what you want the first time. The script often has an error in its syntax: possibly a word is misspelled or a small part of the script is missing. Other times, the script might work but does not produce the expected result. Mistakes or bugs almost always occur when you write scripts, so you should allow enough time for debugging when you develop multimedia titles.
As your skill with scripting increases, youll probably encounter different types of problems as you master one area but start learning others. However, the basic troubleshooting techniques described here are useful for novice and advanced users alike.
The best way to correct a bug in your scripts varies from situation to situation. There are not one or two standard procedures that resolve the problem. You must use a variety of tools and techniques, such as the following:
The following tools help you identify problems in scripts: