Visual Studio 代码终端显示我不明白的消息,这不是我的代码的一部分

问题描述 投票:0回答:1

当我使用安装了所有必要 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 作为编译器,但没有发生任何不同的情况。

c++ visual-studio-code gcc g++ mingw
1个回答
0
投票

别担心,您在 Visual Studio Code 中看到的内容完全正常!这就像程序性能的后台通行证。该工具只是让您了解实际细节,例如正在使用的参数、正在运行的参数,甚至是执行所有幕后工作的解释器。

© www.soinside.com 2019 - 2024. All rights reserved.