Model how to analyze code by walking through each statement to help students engage with their code and better understand their programs.

  • By explaining what each statements means, you’ll help students avoid glossing over pieces of code.
  • Line-by-line tracing of code can also help students see for themselves where the bugs in their code might be.
  • After you finish demonstrating tracing, you can have a student volunteer trace through similar code on the board or have students work in groups to trace code on a handout.

More about this tip

External Source

Interview with Barbara Ericson