c++ - 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?
解决方案
检查调试停止时自动关闭控制台是否未选中。工具 > 选项 > 调试 > 常规 > 调试停止时自动关闭控制台
推荐阅读
- while-loop - 为什么不能等同于指向 nullptr 的指针
- macos - 无法使用 dcmodify 和 dcmscale 等 dcmtk 命令
- c# - 如何在具有嵌入列表的新重组对象列表中分发对象列表以更改根主键/索引?
- npm - 如何在 Yarn 包中同时使用?
- ios - 如何确定在 `application(_ app: UIApplication, open url: URL` 中使用哪个 URL 方案
- javascript - Moment.js 更改午夜时间重置
- python - 在具有不同移位长度的多列上使用 pandas .shift
- javascript - Sedo api 响应错误——SOAP Javascript 客户端
- asp.net - 如何向 NEST 添加多个字段?
- javascript - Vue 3 composition api typescript 从路由查询中填充对象属性