Debugging 如何将visual studio 2015调试器附加到以前部署的asp.net核心docker容器

Debugging 如何将visual studio 2015调试器附加到以前部署的asp.net核心docker容器,debugging,docker,visual-studio-2015,asp.net-core,remote-debugging,Debugging,Docker,Visual Studio 2015,Asp.net Core,Remote Debugging,我使用了visual studio 2015的docker支持扩展,它工作得非常好。我能够从visual studio启动和调试asp.net核心应用程序 我想知道是否有方法将VisualStudio调试器重新附加到docker容器 容器已在运行,并且已安装clrdbg工具 我已经尝试将docker exec包装在powershell中以运行clrdbg,并将项目可执行文件设置为powershell。我不确定这是否接近正确的方法。我只是将命令更新为正确的containerid并从VS启动调试。p

我使用了visual studio 2015的docker支持扩展,它工作得非常好。我能够从visual studio启动和调试asp.net核心应用程序

我想知道是否有方法将VisualStudio调试器重新附加到docker容器

容器已在运行,并且已安装clrdbg工具

我已经尝试将docker exec包装在powershell中以运行clrdbg,并将项目可执行文件设置为powershell。我不确定这是否接近正确的方法。我只是将命令更新为正确的containerid并从VS启动调试。powershell启动,但我无法达到断点

docker exec -i 89595163e6bd /clrdbg/clrdbg --interpreter=mi
Docker版本:

 Version:      1.12.0
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   8eab29e
 Built:        Thu Jul 28 21:04:48 2016
 OS/Arch:      windows/amd64
 Experimental: true
Dotnet版本:

1.0.0-preview2-003121

请尝试以下链接中提到的步骤


我还尝试从其他机器复制100多个文件,至少应用程序在Docker上运行。但是要使它与调试器一起工作。

我只知道要从容器中分离,应该使用Ctrl+p+Ctrl+q,没有关于VS附加到进程的信息:不要使用应答请求更多信息。如果您需要更多信息,请使用评论询问。此外,最好在答案中包含大部分答案,并将链接用作进一步参考的方法-