Debugging by Thinking: A Multidisciplinary Approach (HP Technologies)

9.12 Check data structures

9.12.1 Basic tactic

Insert calls to procedures that check the validity of user data structures.

9.12.2 Purpose

Identify invalid data structures.

9.12.3 Questions answered

9.12.4 Potential problems

9.12.5 Refined tactics

In addition to the inserted call statement, do the following:

9.12.6 Related tactics

Implement data structures that use pointer redundancy to enable error detection and correction.

9.12.7 Choosing tactics

Do a complete test run with all data-structure checking turned on at least once before the program is put into production.

9.12.8 Language specifics

Категории