首页 > 解决方案 > Visual Studio Refuses to pause after debugging

问题描述

Up until now, I have never had a problem with visual studio terminating the program after running. I have been using it for almost two years in c++. I have visual studio 2019. Now, I have to manually write system("pause"); at the bottom of main . It's not that its too much of a hassle, but I am curious if anyone knows why it would mysteriously stop automatically pausing?

标签: c++visual-studiovisual-studio-2019

解决方案


检查调试停止时自动关闭控制台是否未选中。工具 > 选项 > 调试 > 常规 > 调试停止时自动关闭控制台


推荐阅读