Visual Studio 托管在 Linux 上的远程调试应用程序 - 无法枚举特定进程中 CoreCLR 的 运行 个实例

Visual Studio remote debugging application hosted on Linux - unable to enumerate running instances of the CoreCLR in the specific process

我正在尝试远程调试托管在 Linux

上的应用程序

"Debian GNU/Linux 8 (jessie)"

.NET 命令行工具 (2.1.500)

我正在通过 Visual Studio 通过 SSH

进行连接

我已经尝试了两种模式:

项目已在 Windows

上编译
dotnet publish --configuration Release -r linux-x64

还有

dotnet publish --configuration Debug -r linux-x64

并且工作得很好,但出于某种原因我收到:

适用于 Unix 的托管 .NET Core

无法附加到进程:无法枚举特定进程中 CoreCLR 的 运行 个实例


如果相关(可能不相关,因为其他人为此使用 Managed .NET Core for Unix

本机 (GDB): 无法开始调试。无法建立与 GDB 的连接。调试输出可能包含更多信息

调试信息:

Starting unix command: 'gdb --interpreter=mi'
bash: gdb: command not found
gdb --interpreter=mi exited with code 127.

在Visual Studio进程中列为:

Process: MyProjectName

Title: /home/deploy/app/MyProjectName StartUpArgument

有人知道是什么原因造成的吗?

您可以在此处查看人们如何使用 Raspberry Pi 做到这一点:

https://youtu.be/ySzTCl-H10w?t=955

什么步骤

第 1 步

第 2 步

第 3 步

第 4 步

第 5 步

看来我们的愚蠢是无限的

我们已经 运行 我们的应用即服务,但是 FROM OTHER USER ACCOUNT THAN WAS USED IN SSH

连接到进程正常,但出于某种原因

Breakpoint will not currently be hit. No symbols have been loaded for this document

编辑:

解决方案:

https://developercommunity.visualstudio.com/content/problem/97445/vs2017-the-breakpoint-will-not-currently-be-hit-no.html

我也查了:

启用源link支持

回退到 git 凭据管理器身份验证。对于所有来源 link 请求

启用源服务器支持 仅启用我的代码 [OFF]