Back to Classroom Practices
Classroom Practicescs-coaching-knowledge-base.md

Tracing Code

Tracing Code

Front: By tracing code, students will explore states of a program while executing, to learn to comprehend changes in program variables over time and build their debugging skills when issues arise.

Back: Make sure that students first read the problem they are solving. Next, ask students to find where the program begins. Start tracing each line, conceptualizing what is being run one line at a time. Have students use a pen and paper to record values of code variables as code executes. Using trace tables is a strategy that helps students conceptualize the changes to variable values during code execution.

---

Tracing Code — CS Coaching Toolkit