To start and step through your program, the easiest way is to use the buttons on the Process Window’s toolbar:
Figure 10: Process Window Toolbar
Set a breakpoint, then select Go in the toolbar. Your program starts executing. Execution stops just before the line that contains a breakpoint or when you click Halt.
Select Next. TotalView starts your program, and then stops it immediately before the first statement in your main() function.
To stop a running program, select the toolbar’s Halt button. To restart a program, select the toolbar’s Restart button.
To step through your program, use the Step and Next buttons. Both tell your program to execute the current line, but when a line has a function call
Step goes into the function
Next completely executes the functionIf you want to get to a line without individually stepping each line in between, select the line (not the line number) to highlight it, then click the Run To button.If you stepped into a function and want to pop out to the statement that called it, click the Out button.
On stepping in multi-process or multi-threaded programs: “Stepping Part I” and “Part II” in the TotalView User Guide
Rogue Wave Software, Inc. |
Voice: (303) 473-9118 |
rwonlinedocs@roguewave.com |