Debugging with command-line parameters in Visual Studio

前端 未结 9 2047
误落风尘
误落风尘 2020-11-22 14:52

I\'m developing a C++ command-line application in Visual Studio and need to debug it with command-line arguments. At the moment I just run the generated EXE file with the ar

9条回答
  •  青春惊慌失措
    2020-11-22 15:20

    In Visual Studio 2017 with a .NET Core console application do the following:

    Right click on the Project in the Solution window, select "Properties", Debug (on the left side), and enter the arguments into the field "Application Arguments".

    Note that they should be space-separated.

提交回复
热议问题