Examining data is, of course, a primary focus of any debugging process. TotalView provides multiple tools to examine, display, and edit data.
For primitive, built-in types, you can quickly view data local to the selected call stack frame from within the VAR drawer. To watch a variable’s value change while the program runs, add it to the Data View where it remains even when no longer in scope.
For non-simple variables such as pointers, arrays or structures, add them to the Data View where you can drill down by clicking on the arrows to open up sections of data as needed.
This section discusses viewing local and scalar variables in the VAR drawer, and then using the Data View to look at global and compound data.
NOTE >> These procedures on examining data can be performed independently of the tasks in other sections in this chapter, but you must first load the program ("Load the Program to Debug").