c++ - 如何从调试控制台中删除额外的详细信息?

标签 c++ visual-studio

我正在尝试了解 Visual Studio 。我只想看到“你好,我的名字是 hamza”,而不是所有详细信息,例如文件位置和自动关闭控制台的消息。

Hello my name is hamza

C:\Users\Amir Hamza\Desktop\4th sem\oop\Home Practice\Learn 1\x64\Debug\Learn 1.exe (process 12036) exited with code 0.

To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.

Press any key to close this window . . .

最佳答案

1、我建议你可以尝试进入工具->选项->调试->常规,勾选“调试停止时自动关闭控制台” enter image description here

然后点击调试->启动而不调试

enter image description here

enter image description here

2,或者您可以选择添加以下代码:

system("pause");

然后点击调试->开始调试

enter image description here

关于c++ - 如何从调试控制台中删除额外的详细信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58356626/

相关文章:

c++ - 如何将字符串保存到 C++ 中类的 string* 成员?

c# - 如何在 Visual Studio 2008 中获取线程窗口?

c# - 选择匿名类型可以为空吗?

c# - 添加代码库作为引用而不是复制 Visual Studio

c++ - 为什么 new 没有用模板实现?

c++ - 内存/线程泄漏,使用 WinSock2 开发简单的 HTTP 服务器

C++ 访问级别

c++ - 树中两个节点之间的最小距离

c - 在具有较大值(value)的Visual Studio中重新分配失败

c++ - 当文件存在时,最新检查声明构建输入 "is missing"