Debugging by Thinking: A Multidisciplinary Approach (HP Technologies)

9.8 Generate a variable snapshot

9.8.1 Basic tactic

Run the application under an interpreter or high-level debugger. Generate a snapshot of a set of variable values each time a statement in a specified procedure is executed.

9.8.2 Purpose

Determine the values of a set of variables.

9.8.3 Questions answered

9.8.4 Potential problems

9.8.5 Refined tactics

Dump only selected elements of arrays, such as the first and last element of each row or column, or the diagonal elements.

9.8.6 Related tactics

9.8.7 Choosing tactics

Use the basic tactic when one of the following conditions is true:

9.8.8 Language specifics

Категории