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:
![]()
Invoke the Debugger
Start or Stop Debugging a Program