如何调试从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?
答
您可以使用 vsdbg 可以在Linux上调试任何远程dotnet核心进程. Kubernetes Minikube在下面使用Docker,而Docker容器实际上类似于Linux VM. 我写了一个
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.