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:

Debugging Process:

  1. Describe your problem (what is happening).
  2. Hunt for the bug.
  3. Try small solutions and see how they effect your code.
  4. Document what you learned.

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): Predict what the program does.What is the bug and how do you fix it?

Practice / Level 6 – 3 programs...Run and Fix:

Journal: State 1 debugging technique you found useful today.