Keeping console window open when debugging

后端 未结 3 1205
闹比i
闹比i 2020-12-06 19:12

When I start a program without debugging (Ctrl+F5), I have to press a key to close the console window when the program is finished. When I start the program with de

3条回答
  •  再見小時候
    2020-12-06 19:40

    I don't think so, but you could do it manually

    • add break point in the end of main method
    • add the read function at the end of the main function so it will stay open to read the input and closed if you hit any key

提交回复
热议问题