.Net Core Clrdebugging器VSDBG在Windows Docker容器中连接到远程进程时暂停应用程序

我有一个.net核心应用程序运行在一个Windowsdocker容器,我想附加VS代码。 当我连接到远程进程,似乎进程冻结,如果我断开debugging器,容器closures没有任何错误。

launch.json

{ "name": ".NET Core Remote Attach", "type": "coreclr", "request": "attach", "pipeTransport": { "pipeProgram": "powershell", "pipeArgs": ["docker exec -i --privileged amazing_johnson" ], "pipeCwd": "${workspaceRoot}", "debuggerPath": "c:\\coreclr-debug\\vsdbg.exe" }, "processId": "1736" }, 

debugging输出控制台中的结果:

 Starting: "powershell" "docker exec -i --privileged amazing_johnson" "c:\coreclr-debug\vsdbg.exe --interpreter=vscode" 

将debugging器附加到远程进程后,当我尝试访问该站点时,它只是挂起,VSCode列出线程并在terminal中显示一些JSON,但没有任何反应。 断开连接会closures容器。 为什么发生这种情况?

可能与此GitHub问题有关: https : //github.com/Microsoft/vscode/issues/31070