简体   繁体   English

如何在 Windows 11 ARM64 上使用 VS Code 调试 C# 控制台应用程序?

[英]How to debug C# console app with VS Code on Windows 11 ARM64?

I'm running the insider preview version of Windows 11 for ARM64 and installed the Visual Studio Code ARM64 build.我正在为 ARM64 运行 Windows 11 的内部预览版,并安装了 Visual Studio Code ARM64 版本。

Using dotnet new (SDK 6 is installed) I was able to create a simple console app.使用dotnet new (安装了 SDK 6)我能够创建一个简单的控制台应用程序。 It runs successfully using dotnet run .它使用dotnet run成功运行。

If, however, I try to debug the project from withing VS Code using ".NET Core Launch", I'm getting this error:但是,如果我尝试使用“.NET Core Launch”从 VS Code 中调试项目,我会收到以下错误:

Error processing 'configurationDone' request.处理“configurationDone”请求时出错。 This version of the Visual Studio Remote Debugger (MSVSMON.EXE) cannot be used to debug ARM64 processes or dumps.此版本的 Visual Studio 远程调试器 (MSVSMON.EXE) 不能用于调试 ARM64 进程或转储。 Please use the ARM64 version instead.请改用 ARM64 版本。

What do I need to install/configure to make this work?我需要安装/配置什么来完成这项工作?

At the time of this writing, the answer is to use the latest insider version (1.63.0-insider) of Visual Studio Code.在撰写本文时,答案是使用 Visual Studio Code 的最新内部版本 (1.63.0-insider)。

This particularly interesting, as the Apple Silicon version, which is also ARM code, does not require the insider build.这特别有趣,因为 Apple Silicon 版本也是 ARM 代码,不需要内部构建。

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

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