Gue*_*lla 5 azure docker .net-core
我正在使用适用于 Linux 容器的 Azure 应用服务。我已按照他们的说明启用 SSH ( https://docs.microsoft.com/en-us/azure/app-service/containers/configure-custom-container#enable-ssh )。
这有效,但它不会在公共端口上公开 SSH。您必须通过他们的界面,所以我不知道我打算如何设置 VSDBG。
远程调试说明在这里:https : //github.com/Microsoft/MIEngine/wiki/Offroad-Debugging-of-.NET-Core-on-Linux---OSX-from-Visual-Studio
它的工作原理是通过 SSH 将 Visual Studio 连接到服务器上的进程。
看到 Azure 是 Microsoft 产品,我必须假设他们的生态系统有一种方法可以连接到调试会话,但我找不到说明如何操作的文档。
如何在应用服务中调试 linux 容器?
编辑:
我在 VS2017 中发现了云资源管理器,它有一个附加选项,但它给出了错误:
System.Runtime.InteropServices.COMException (0x89710023): Unable to connect to the Microsoft Visual Studio Remote Debugger named 'gardner.azurewebsites.net'. The input data was not in the expected format or did not have the expected value.
at Microsoft.VisualStudio.Debugger.Interop.Internal.IDebuggerInternal120.ConnectToServer(String szServerName, VsDebugRemoteConnectOptions[] pConnectOptions, CONNECT_REASON ConnectReason, Int32 fIncrementUsageCount, IDebugCoreServer3& ppServer)
at Microsoft.VisualStudio.Web.Azure.MicrosoftWeb.Operations.RemoteDiagnosticsSessionBase.ConnectToServer(String site, String user, String password)
Run Code Online (Sandbox Code Playgroud)
我想我需要修改容器
编辑:
我找到了使其在 Windows 图像上工作的示例:https : //blogs.msdn.microsoft.com/azuredev/2019/01/30/debugging-docker-containers-attaching/
我需要弄清楚如何在 linux 中做同样的事情
| 归档时间: |
|
| 查看次数: |
683 次 |
| 最近记录: |