As you're developing scripts, you'll no doubt encounter a few problems in getting them to run properly. As Figure 10.9 shows, you can help debug your scripts by printing the script onscreen as it runs. That way, you can follow the script as it runs and see where the problems might be.
Figure 10.9. Printing the script onscreen as it runs is a great way to debug it.
To Print the Script Onscreen as it Runs: