如何禁用消息“您只能使用 Microsoft .NET Core 调试器...”?

Ada*_*gle 8 c# visual-studio-code vscode-debugger

我在 Ubuntu 19.10 上运行 Visual Studio Code 1.42.1,使用默认的 C# 扩展版本 1.21.11。

每当我使用“开始调试”或什至通过“不调试运行”启动 C# 程序时,我都会在输出窗口中看到以下消息:

-------------------------------------------------------------------
You may only use the Microsoft .NET Core Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software
to help you develop and test your applications.
-------------------------------------------------------------------
Run Code Online (Sandbox Code Playgroud)

这个消息很烦人。有什么办法可以禁用它吗?

小智 0

解决此问题的方法是更改​​ launch.json 文件中的某些内容

  1. 打开 .vscode/launch.json
  2. 将控制台设置更改为集成终端

从: "console": "internalConsole",

到: "console": "integratedTerminal",

  1. 保存更改并开始调试项目

这对我来说效果很好