Exercises

  1. Practice tracing code by hand.

    Open any scripts that you have previously written and hand trace the code, keeping track of the current state (value) of each variable in the code.

    When tracing code by hand it is critical to trace what each line or statement of the program actually executes, not what you intended it to do. This can be the hardest part of manual code tracing.

    Step through your program using the debugger to check your accuracy on manually tracing code. Being able to efficiently trace your code by hand will help in any coding activity you do.