Skip to main content
CS Teaching Tips

Main navigation

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

Teach students how to trace out-of-bounds errors by demonstrating on the board.

  • Explicitly write, cross out, and update variable-value pairs when tracing through code that iterates.

More about this tip

Tags

  • Development Methods
External Source

Interview with Nick Melnyk

Other Tips By
Other Tips By Nick Melnyk

Similar tips

Teach students to use a system of inquiry, testing, and refining to debug their code, develop better coding habits, and deal with their frustration.
Mention to students that individual blocks in Scratch and Snap can be tested by double clicking them in the block library so they know this useful, non-intuitive trick for learning what an individual block does.
Have assignments include visualizations of the code students create and run to help them see exactly what it does.

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

Privacy Policy