如何从 Visual Studio 2017 调试在 Minikube 上运行的 .Net Core 应用程序

如何从 Visual Studio 2017 调试在 Minikube 上运行的 .Net Core 应用程序

问题描述:

我制作了一个 .Net Core Web 应用程序并将其部署在 Minikube VM 上运行的容器上.我想调试该应用程序,如何使用 Visual Studio 2017 进行调试?

I have made a .Net Core Web Application and deployed it on container running on Minikube VM. I want to debug that app, How can I do it using Visual Studio 2017?

Visual Studio 2019 更新:https:///link.medium.com/rGycPY6NGdb

Update for Visual Studio 2019: https://link.medium.com/rGycPY6NGdb

您可以使用 vsdbg 调试任何远程 dotnet 核心进程在 Linux 上.Kubernetes Minikube 在底层使用 Docker,而 Docker 容器实际上类似于 Linux VM.我写了一个 如果您需要更多详细信息,请在 Medium.com 上发布相关内容.

You can use vsdbg to debug any remote dotnet core process on Linux. Kubernetes Minikube uses Docker underneath and Docker container is in fact something like a Linux VM. I wrote a post about this on Medium.com if you need more details.