PDA

View Full Version : How do I set (or reset) command arguments?



Josh-TotalView-Tech
07-20-2006, 10:37 AM
TotalView, like almost all programs, has a number of command line options (http://www.etnus.com/Documentation/latest/html/wwhelp/wwhimpl/api.htm?href=Reference_Guide/TotalViewCommandLineOptions.html). The program you are debugging also has arguments. TotalView's –a option lets you separate options needed by TotalView from those you're sending to your program. That is, everything after the –a belongs to your program and will be sent to it.

After you get your program running under TotalView's control (http://www.etnus.com/Documentation/latest/html/wwhelp/wwhimpl/api.htm?href=User_Guide/StartingTotalViewa.html), you may want to modify these arguments or add arguments that you forgot. The first time you open it, the Arguments Tab within the Process > Startup Parameters (http://www.etnus.com/Documentation/latest/html/wwhelp/wwhimpl/api.htm?href=Online_Help/ProcessProcessStartupParameters.html) Dialog Box displays the arguments that you entered on the command line. For example, suppose you started TotalView in the following way:[br
totalview arraysLinux -a 3 3
Here is what appears in this dialog box:

http://www.totalviewtech.com/Documentation/latest/html/TotalView_Tips/images/StartupParameters_arguments.png

While you can edit these arguments at anytime, TotalView only sends them to your program when it starts or restarts executing.
[br]