Debugging with command-line parameters in Visual Studio

right-click the project; choose properties; go to the Debugging section; there is a box for “Command Arguments”.