c++ Visual Studio代码终端显示我不理解的消息,这不是我代码的一部分

nwnhqdif  于 11个月前  发布在  其他
关注(0)|答案(1)|浏览(81)

当我使用安装了所有必要C插件的Visual Studio Code运行我的C代码时,它总是在实际显示我的代码的预期输出之前在终端中显示这些消息:

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\(My username)\Coding projects>  & 'c:\Users\(My username)\.vscode\extensions\ms-vscode.cpptools-1.18.5-win32-x64\debugAdapters\bin\WindowsDebugLauncher.exe' '--stdin=Microsoft-MIEngine-In-f52k25pf.nob' '--stdout=Microsoft-MIEngine-Out-dv4azz2x.qdg' '--stderr=Microsoft-MIEngine-Error-x3e3i25z.2ax' '--pid=Microsoft-MIEngine-Pid-intd1lwa.i0t' '--dbgExe=C:\msys64\ucrt64\bin\gdb.exe' '--interpreter=mi'

字符串
我使用MingW作为编译器,我选择g++来运行和编译这段代码。
这是不可避免的吗?如果可能的话,我更喜欢有一个清晰的窗口来测试我的代码。我看了所有其他选项卡(问题,输出,控制台,端口),但我没有找到我想要的。任何建议都将不胜感激。
我尝试使用gcc作为编译器,但没有什么不同。

8mmmxcuj

8mmmxcuj1#

别担心,你在Visual Studio Code中看到的是完全正常的!它就像是你程序性能的后台通道。该工具只是让你看到一些基本的细节,比如正在使用的参数,正在使用的参数,甚至是执行所有幕后工作的解释器。

相关问题