Visual Studio terminates my console application too fast

前端 未结 5 690
温柔的废话
温柔的废话 2020-12-21 19:12

When I execute my program in Visual Studio (just a simple hello world app) it terminates and closes the console window immediately, rather than waiting for me to close it ma

5条回答
  •  盖世英雄少女心
    2020-12-21 20:13

    You can set a breakpoint and start the application in Debug mode. This way the IDE will halt at the breakpoint and the window doesn't get closed until you continue the execution of your code.

提交回复
热议问题