Debug a program
To configure a new debugging session:
-
Open the Program Session window of the Session Editor using one of the following methods:
-
Select File > Debug a Program.
-
On the Start Page, select Debug a Program.
-
-
Enter a session name in the Session Name field.
Note that any previously entered sessions of the same type are available from the Session Name dropdown list. See Edit a previous session.
-
Enter the name of your program in the File Name field or select Browse to locate and select the file. You can enter a full or relative path name. If you have previously entered programs here, they will appear in the dropdown list.
If you enter a file name and the UI cannot find it, it displays the path in red; however, TotalView searches for it in the list of directories listed in your PATH environment variable.
-
(Optional) Add any custom configurations or options:
-
Program arguments: Enter any program arguments into the Arguments field. Because you are loading the program from within TotalView, you need to enter the command-line arguments that the program requires.
-
Debug Options: To learn more, see Debug Options.
-
Program Environment: To learn more see Working Directory and Environment Variables for the Program.
-
Standard Input and Output: To learn more, see Standard Input and Output.
-
-
Select Load Session, which is enabled after all required information is entered.