How do I 'Trace' code?

Asked by kemiadewale · 3 months ago

1 Answer

3
amorebise · 3 months ago Top Answer

Tracing is pretending to be the computer. You take a piece of paper and write down the value of every variable as you follow the code line by line.

It's the best way to find logic errors. If the variable was supposed to be 10 but your paper says it's 5, you know exactly where things went wrong.

Log in to add a comment.