U3Ch1L6_Debugging
Purpose: Students are introduced to debugging a problematic programs.
Journal: Your grandparents call you and say that they are unable to get music to play on their speakers. What could the problem be? How will you guide them to a solution?
Video: Debugging
Activity: Log on to Code.org U3Ch1L6 Debugging: Gradesheet
Debugging Process:
Hint: Use the text visualizer: Turtle speed / Text mode / Turns Golden as it plays.
Level 1 – Debug Program: Strings need to Go In Quotes: ""
Level 2 – Debug Program (My Message): Strings need to Go In Quotes: ""
Level 3 – Run and Fix (Smiley Face): The range of values for the random numbers is too large.
Level 4 – Run and Fix (Music Player): Event handlers (onEvent) should not go inside other (onEvent) blocks.
Level 5 – Run and Fix (Red Button / Blue Button): The program does not "Run." Imagine that when you select the Blue Button, the Red Button changes size. Then when you select the Red Button, the Blue Button Changes size. Now view the program...can you see the problem? How do you fix it? Write it down.
Practice / Level 6 – 3 programs...Run and Fix:
Journal: State 1 debugging technique you found useful today.