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

Have students write out test cases and their prediction for what their code will do in class before running it to teach them the practice of analyzing their code first.
Encourage students to break up their Scratch scripts into smaller chunks to help them test and debug their code.
Train students to draw pictures of code traces through namespaces, objects and function calls because the benefits of drawing these processes helps them avoid common mistakes.

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

Privacy Policy