
7. Click Yes in this pop-up window. The TotalView root window appears and displays
a line for each process being debugged.
If you are running Fortran code, another p op-up window m ay appear with the following
warning:
Sourcefile initfdte.f was not found, using assembler mode.
Click OK to close this pop -up window . You can safely ig nore this warning.
8. You can now set a breakpoint somewhere in your code. T he method to d o this may vary
slightly between versions of TotalView. For TotalView Version 6.0, the basic process
is as follows:
a. Select At Location in the Action Point pull-down menu of the TotalView
process window.
b. Enter the name of the location where you want to set a breakpoint.
c. C lick OK.
9. Click the Go bu tt on to run the app lication and go to the breakpoin t.
Continue debugging as you would on any system. If you are not familiar with TotalView, you
can click on Help in the right-hand corner of the process window for additional information.
4.2.1.7 Debugging Running Applications
As an alternative t o the meth od described in Section 4.2.1.6, it is also possible to "attach" a n
instance of TotalView to an application which is already running. The example presented here
assumes you have already completed the steps in Section 4 .2.1.2 and S ection 4.2.1.5.
1. Compile a long-running application as in Section 4.2.1.6:
$ mpicc -g -o Psimple simple.c -lm
2. Run the application:
$ mpirun -srun -n2 Psimple
3. Start TotalView:
$ totalview
4. In the TotalView Root Window, click Unattached to display a list of running processes
(Figure 4-4). Double-click on the srun process to attach to it.
Figure 4-4: Unattached Window
4-10 Debugging Applications
Commentaires sur ces manuels