Debugging with command-line parameters in Visual Studio

前端 未结 9 1988
误落风尘
误落风尘 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:40

    Right click on the project in the Solution window of Visual Studio, select "Debugging" (on the left side), and enter the arguments into the field "Command Arguments":

提交回复
热议问题