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
- Sign in through your teacher's Code.org section. Open Debugging in Maze.
- For each puzzle, predict what the current blocks will do before you press Run.
- Change one block, test, and compare the result with your prediction.
- Keep a three-bug log. For each bug, record what happened, what you changed, and how the next test changed the result.
- Capture the lesson progress screen at the end of class.
If your code is not working
- Read the instruction at the top of the level again.
- Run the code after one change so you know which change mattered.
- 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
- Inicia sesión en la sección de Code.org de tu maestro. Abre Debugging in Maze.
- En cada rompecabezas, predice qué harán los bloques actuales antes de presionar Run.
- Cambia un bloque, prueba y compara el resultado con tu predicción.
- 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.
- Toma una captura de la pantalla de avance al final de la clase.
Si tu código no funciona
- Vuelve a leer la instrucción que aparece arriba del nivel.
- Ejecuta el código después de un solo cambio para saber cuál cambio importó.
- 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