Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • 3D
  • About
  • Rate Tips
  • Tip Sheets

Read code aloud to help students debug code by acting it out.

Encourage students to try some debugging off-screen. A common strategy in debugging is to read through each step in the code and trace on paper what the result would be. For example, when working with sprites in Scratch, you can have one student read the code while another acts as the sprite by drawing or moving around the classroom.

Example: "Read the code aloud and pretend to be the cat!"

See this and related tips as a Tip Sheet: http://csteachingtips.org/tips-for-teaching-scratch

More about this tip

Other Tips By
Other Tips By Colleen Lewis

Similar tips

Use an Arduino and three LEDs to make an electronic, binary die to teach students about data representation, programming basics, and Arduino in an engaging introductory activity.
Have students design an anagram solver in Prolog or Java to introduce recursive backtracking.
Have students complete practice CSP Performance Tasks so that students can get feedback and coaching on their performance before the actual test where you’re not allowed to help.

Similar tips

Gradually increase the grading strictness about styling to help students become more meticulous about naming and documentation.
Start by having students transpose code from one loop type to the other when teaching all the different conditionals for the AP CS A exam.
Provide text descriptions of images and transcripts of videos in your course to ensure that all students can access class materials.

For more information or to report a bug, contact us at admin@csteachingtips.org. Built with Bootstrap. Powered by Drupal.

Privacy Policy