playing computer

Following a program by hand, one statement at a time, writing down every variable's value in a table as it changes.

In more detail

Playing computer shows exactly what the code does rather than what you meant, which is how you find logic errors. Record each line executed, the variables it changes and any output, and follow calls into functions and back. The debugger automates the same idea.

Related terms

Taught in

References