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.

Figure 59: Setting<br />

Command-Line<br />

Options and<br />

Environment<br />

Variables<br />

Loading Programs<br />

Setting Command-line Arguments and Environment<br />

Variables<br />

Because you are loading the program from within <strong>TotalView</strong>, you will not<br />

have entered the command-line arguments that the program needs. The<br />

Arguments page allows you to enter what ever is needed. (See Figure 59.)<br />

Either separate each argument with a space or place each one on a separate<br />

line. If an argument contains spaces, enclose the entire argument in<br />

double-quotation marks.<br />

When <strong>TotalView</strong> begins executing, it reads in your environment variable<br />

and, when your program begins executing, will ensure that your program<br />

has access to these variables. Use the Environment variables area to add<br />

additional environment variables or to override values of existing variables.<br />

<strong>TotalView</strong> does not display the variables that were passed to it when you started your<br />

debugging session. Instead, this area of this tabbed page just displays the variables you<br />

added using this command.<br />

The format for specifying an environment variable is name=value. For example,<br />

the following definition creates an environment variable named<br />

DISPLAY whose value is enterprise:0.0:<br />

DISPLAY=enterprise:0.0<br />

You can also enter this information using the Process Window’s Process ><br />

Startup Parameters command.<br />

Altering Standard I/O<br />

Use the controls within the Standard I/O page to alter standard input, output,<br />

and error. In all cases, you name the file to which <strong>TotalView</strong> will write or<br />

<strong>TotalView</strong> <strong>Users</strong> <strong>Guide</strong>: version 8.7 65

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

Saved successfully!

Ooh no, something went wrong!