Student material · Assignment · Unpublished in Canvas

Day 3: Debugging Detective

Points
5
Submission
upload, media recording
Canvas state
Unpublished

Intro to CS · Day 3 of 10

Debugging Detective

Find the difference between what the code should do and what it actually does.

  • Tool: Code.org Express, Lesson 2
  • Time: one class period
  • Turn in: progress screenshot, three-bug log, and reflection

English

Words for today: bug · debug · test

What to do

  1. Sign in through your teacher's Code.org section. Open Debugging in Maze.
  2. For each puzzle, predict what the current blocks will do before you press Run.
  3. Change one block, test, and compare the result with your prediction.
  4. Keep a three-bug log. For each bug, record what happened, what you changed, and how the next test changed the result.
  5. Capture the lesson progress screen at the end of class.

If your code is not working

  1. Read the instruction at the top of the level again.
  2. Run the code after one change so you know which change mattered.
  3. Use the built-in hint, then show your teacher the level and what you already tried.

Before you submit

  • Upload the progress screenshot and the three-bug log.
  • In the submission comment, complete the reflection.

Reflection

Write 2 or 3 sentences: "The bug that took the longest was ____. I found it by ____."

Word bank: bug · debug · test · predict · result · change

Español

Palabras de hoy: bug (error) · debug (depurar) · test (probar)

Qué hacer

  1. Inicia sesión en la sección de Code.org de tu maestro. Abre Debugging in Maze.
  2. En cada rompecabezas, predice qué harán los bloques actuales antes de presionar Run.
  3. Cambia un bloque, prueba y compara el resultado con tu predicción.
  4. Mantén un registro de tres errores. Para cada uno, anota qué pasó, qué cambiaste y cómo cambió el resultado en la siguiente prueba.
  5. Toma una captura de la pantalla de avance al final de la clase.

Si tu código no funciona

  1. Vuelve a leer la instrucción que aparece arriba del nivel.
  2. Ejecuta el código después de un solo cambio para saber cuál cambio importó.
  3. Usa la pista del nivel. Después, muéstrale a tu maestro el nivel y lo que ya intentaste.

Antes de entregar

  • Sube la captura de avance y el registro de tres errores.
  • En el comentario, completa la reflexión.

Reflexión

Escribe 2 o 3 oraciones: "El error que más tardé en resolver fue ____. Lo encontré al ____."

Banco de palabras: error · depurar · probar · predecir · resultado · cambio