Chapter 2 Basic Debugging
This chapter illustrates some basic debugging tasks and is based on the shipped program, wave_extended, located in the directory installdir/toolworks/totalview.version/platform/examples. This is a simple program that creates an array and then increments its values to simulate a wave form which can then be viewed using the Visualizer. The program requires user input to provide the number of times to increment.
NOTE >> TotalView has a new user interface with improved debugging workflows, features, and a modern look and feel. Existing TotalView users can opt to use the new UI by selecting the UI preference on the Display tab in the Preferences dialog.
For new TotalView users, the new UI is the default, but you can revert to the Classic TotalView UI, if necessary, by changing the Display preference on the Preferences tab. To learn more about using the new UI, check out the
NextGen TotalView for HPC documentation set and
Getting Started Guide.
The first steps when debugging programs with TotalView are similar to those using other debuggers:
• Use the
-g option to compile the program. (Compiling is not discussed here. Please see
"Compiling Programs".)
• Start the program under TotalView control.
• Start the debugging process, including setting breakpoints and examining your program’s data.
The chapter introduces some of TotalView’s primary tools, as follows: