Debugging with command-line parameters in Visual Studio
The Mozilla.org FAQ on debugging Mozilla on Windows is of interest here.
In short, the Visual Studio debugger can be invoked on a program from the command line, allowing one to specify the command line arguments when invoking a command line program, directly on the command line.
This looks like the following for Visual Studio 8 or 9 (Visual Studio 2005 or Visual Studio 2008, respectively)
devenv /debugexe 'program name' 'program arguments'
It is also possible to have an explorer action to start a program in the Visual Studio debugger.
Microsoft Visual Studio Ultima 2013.
You can just go to the DEBUG menu → Main Properties → Configuration properties → Debugging and then you will see the box for the command line arguments.
Actually, you can set the same input arguments for all the different configurations and not only for debugging.
From the pull down menu of configuration select: All Configurations and insert the input arguments (each argument separated by space).
Now, you can execute your program in different modes without having to change the input arguments every time.
Yes, it's in the Debugging section of the properties page of the project.
In Visual Studio since 2008: right-click the project, choose Properties, go to the Debugging section -- there is a box for "Command Arguments". (Tip: not solution, but project).
Even if you do start the executable outside Visual Studio, you can still use the "Attach" command to connect Visual Studio to your already-running executable. This can be useful e.g. when your application is run as a plug-in within another application.