30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Setting Startup Parameters<br />

Setting Startup Parameters<br />

After you load a program, you may want to change a program’s commandline<br />

arguments and environment variables or change the way standard<br />

input, output, and error. Do this using the Process > Startup Parameters<br />

command. The displayed dialog box is nearly identical to that displayed<br />

when you use the File > New Program command, differing in that the dialog<br />

box doesn’t have a Program tab.<br />

For information on this dialog box’s tabs, see “Setting Command-line Arguments<br />

and Environment Variables” on page 65 and “Altering Standard I/O” on<br />

page 65.<br />

If you are using the CLI, you can set default command line arguments by<br />

setting the ARGS_DEFAULT variable.<br />

Also, the drun and drerun commands let you reset stdin, stdout, and stderr.<br />

File > Preferences<br />

Setting Preferences<br />

The File > Preferences command lets you tailor many <strong>TotalView</strong> behaviors.<br />

This section contains an overview of these preferences. See the online<br />

Help for detailed explanations.<br />

Some settings, such as the prefixes and suffixes examined before loading<br />

dynamic libraries, can differ between operating systems. If they can differ,<br />

<strong>TotalView</strong> can store a unique value for each. <strong>TotalView</strong> does this transparently,<br />

which means that you only see an operating system’s values when<br />

you are running <strong>TotalView</strong> on that operating system. For example, if you set<br />

a server launch string on an SGI computer, it does not affect the value<br />

stored for other systems. Generally, this occurs for server launch strings<br />

and dynamic library paths.<br />

Every preference has a variable that you can set using the CLI. These variables<br />

are described in the”Variables” chapter of the <strong>TotalView</strong> Reference <strong>Guide</strong>.<br />

The rest of this section is an overview of these preferences.<br />

74 Chapter 4: Setting Up a Debugging Session

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!