I want to debug a program in Visual Studio 2008. The problem is that it exits if it doesn\'t get arguments. This is from the main method:
if (args == null ||
Go to Project-> Properties. Then click on the Debug tab, and fill in your arguments in the textbox called Command line arguments.
Project-> Properties
Debug
Command line arguments