我正在尝试了解 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、我建议你可以尝试进入工具->选项->调试->常规,勾选“调试停止时自动关闭控制台”
然后点击调试->启动而不调试
2,或者您可以选择添加以下代码:
system("pause");
然后点击调试->开始调试
关于c++ - 如何从调试控制台中删除额外的详细信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58356626/