Debugging Pong (Optional)¶
Time Estimate: 45 minutes
In this lesson, we will learn more about the types of errors you might get in a program, including tips for identifying, fixing, and preventing them. In computer programming, a bug is an error or defect, that prevents the app from working the way it is supposed to. After watching the video on debugging, try to find the errors in the Pong game and then answer the questions about debugging.
The activity for this lesson is to debug a version of the Pong program. There are at least three errors in this version of the Pong game. See if you can find them all! To get started, open App Inventor with the Pong With Bugs template.
Reflection: For Your Portfolio¶
Create a page named Debugging under the Reflections category of your portfolio and answer the following questions:
- For each of the 3 bugs in the Pong game, explain what the bug was, how to fix it, and the type of error (semantic or syntax).