简体   繁体   English

将 vscode 扩展 c/c++ 与 gdb 一起使用时,如何在终端上删除日志和输出

[英]How to get rid of logs along with output on terminal when using vscode extention c/c++ with gdb

When I complete debugging my code on vscode using c/c++ extension with gdb, I get this logs on the terminal with my result, I have tried to read documentation on both vscode and gdb but I still get stuck.当我使用带有 gdb 的 c/c++ 扩展完成在 vscode 上调试我的代码时,我在终端上得到了这个日志和我的结果,我试图阅读有关 vscode 和 gdb 的文档,但我仍然卡住了。 Do you guys know how to get rid of them.你们知道如何摆脱它们吗? Thanks a lot!非常感谢!

图片链接

I assume you just want to get rid of the output, if I understand you correctly?如果我理解正确的话,我假设您只想摆脱输出?

Click on the trashcan icon 🗑️ on the top right corner of the terminal panel.点击终端面板右上角的垃圾桶图标🗑️。 This will kill the console.这将杀死控制台。

When you start a new debugging session, a new console will spawn.🗑️当你开始一个新的调试会话时,会产生一个新的控制台。🗑️

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM