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

PASSPORT 3 / PASAPORTE 3

Use controlled tests to repair code / Usar pruebas controladas para reparar código

I can: I can predict, change one thing, observe the result, and revise the matching pseudocode.

Puedo: Puedo predecir, cambiar una sola cosa, observar el resultado y revisar el pseudocódigo correspondiente.

Show Your Learning / Demuestra lo aprendido

Use Passport Checkpoint 3 as the three-bug log. Revise the matching pseudocode after each successful repair and submit a readable checkpoint screenshot.

Usa el Punto de control 3 como registro de tres errores. Revisa el pseudocódigo correspondiente después de cada reparación y entrega una captura legible.

  1. Now / Ahora: Use Passport 3 as the three-bug log; predict before every run.
    Usa el Pasaporte 3 como registro de tres errores; predice antes de cada ejecución.
  2. Next / Después: After each repair, copy the matching pseudocode line and revise it.
    Después de cada reparación, copia la línea correspondiente del pseudocódigo y revísala.
  3. Done / Al terminar: Submit the progress screenshot, three complete test records, and improvement claim.
    Entrega la captura de avance, tres registros completos de prueba y la afirmación de mejora.

Points / Puntos: 5 points: progress 1; three test records 3; revision/claim 1.
5 puntos: avance 1; tres registros 3; revisión/afirmación 1.

Privacy / Privacidad: Crop names, email addresses, and profile details from screenshots. / Recorta nombres, correos electrónicos y datos del perfil de las capturas.