How do I start a program with arguments when debugging?

前端 未结 6 1920
南笙
南笙 2020-12-04 13:50

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 ||         


        
6条回答
  •  温柔的废话
    2020-12-04 14:35

    Go to Project-> Properties. Then click on the Debug tab, and fill in your arguments in the textbox called Command line arguments.

提交回复
热议问题