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 ||
I would suggest using the directives like the following:
static void Main(string[] args) { #if DEBUG args = new[] { "A" }; #endif Console.WriteLine(args[0]); }
Good luck!