Specify Command-Line Parameters for Your Program

You can specify command-line parameters for your program either from the command shell where you invoke the debugger, or in the Startup dialog of the debugger.

Specify Parameters from a Command Shell

To pass arguments to your program from a command shell, make sure that they appear after the name of the program on the command line:

idebug /debugger-options program-name program-parameters

where debugger-options are any options supplied to the debugger itself, program-name is the name of the executable you want to debug, and program-parameters are the arguments or parameters you want to pass to your program.

Specify Parameters from the Startup Dialog

To pass arguments to your program from a startup dialog, do the following:

  1. Open the startup dialog, either by invoking the debugger without a program name, or by choosing File->Startup from the Session Control window or a Source window.
  2. Enter the name of the program you want to debug in the Program entry field, or select a file from the pulldown list.
  3. Enter the program parameters in the Parameters field.
  4. Click on OK to start debugging the program with the supplied command-line parameters.



Invoke the Debugger
Start or Stop Debugging a Program


Debugger Options