Run»Specify Executable and Command Line

Use the Specify Executable and Command Line command to specify:

  • Command line arguments, working directory, and environment options for executables.
  • The path to an executable for remote debugging.

The Specify Executable and Command Line dialog box contains the following options:

  • Configuration—Specifies the configuration(s) to which the settings apply. The following configurations are listed by default:
    • Debug—Settings apply to the default 32-bit debug configuration.
    • Release—Settings apply to the default 32-bit release configuration.
    • Debug64—Settings apply to the default 64-bit debug configuration.
    • Release64—Settings apply to the default 64-bit release configuration.
    • All Configurations—Changed settings apply to all configurations.
      Note Note  
      • Any custom configurations you create are also listed.
      • If you access the Specify Executable and Command Line dialog box from the Add Configuration or Edit Configuration dialog boxes, LabWindows/CVI dims the Configuration option. LabWindows/CVI applies the changes you make in this dialog box to the configuration specified in the Add Configuration or Edit Configuration dialog box.
  • Program name—Specifies the path to the executable you want to debug remotely. LabWindows/CVI dims this option if you are not debugging remotely or if the Target Type is not set to Dynamic Link Library.
  • Command line arguments—Specifies command line arguments for the executable. When you run your program in the LabWindows/CVI environment, LabWindows/CVI passes the command line arguments to your main function in the argc and argv parameters.
  • Working directory—Specifies the working directory for the executable. If you do not provide a working directory, LabWindows/CVI uses the directory where the executable is located as the working directory.
  • Environment options—Specifies environment options for the executable. An environment option is a key-value pair where the key is separated from the value by an equals sign (=). For multiple environment options, use a semicolon-separated list of key-value pairs. LabWindows/CVI merges environment options into the environment of the executable you are debugging. The executable can access these values by calling the getenv function.

Refer to the Persistence of LabWindows/CVI Dialog Box Options topic for more information about where dialog box options are saved and what they affect.

WAS THIS ARTICLE HELPFUL?

Not Helpful