Totalview® for HPC User Guide : PART II Debugging Tools and Tasks : Chapter 9 Examining and Editing Data and Program Elements : Viewing a List of Variables : Seeing Variable Value Changes in the Expression List Window
Seeing Variable Value Changes in the Expression List Window
TotalView can tell you when a variable’s value changes in several ways.
When your program stops at a breakpoint, TotalView adds a yellow highlight to the variable’s value if it has changed, Figure 133.
Figure 133 – Expression List Window With “Change” Highlighting
If the thread is stopped for another reason—for example, you’ve stepped the thread—and the value has changed, TotalView does not add yellow highlighting to the line.
You can tell TotalView to display the Last Value column. Do this by selecting Last Value in the column menu, which is displayed after you click on the column menu () icon.
Figure 134 – Variable Window Showing Last Value Column
Notice that TotalView has highlighted all items that have changed within an array. In a similar fashion it can show the individual items that have changed within a structure.