Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
用于容器的Azure应用程序服务中运行的远程调试.net核心应用程序_Azure_Docker_.net Core - Fatal编程技术网

用于容器的Azure应用程序服务中运行的远程调试.net核心应用程序

用于容器的Azure应用程序服务中运行的远程调试.net核心应用程序,azure,docker,.net-core,Azure,Docker,.net Core,我正在为Linux容器使用Azure应用程序服务。我按照他们的说明启用了SSH() 这是可行的,但它不会在公共端口上公开SSH。你必须通过他们的界面,所以我不知道如何设置VSDBG 远程调试说明如下: 它通过SSH将VisualStudio连接到服务器上的进程来工作 鉴于Azure是Microsoft的产品,我必须假设他们的生态系统中有一种连接到调试会话的方法,但我找不到说明如何操作的文档 如何调试应用程序服务中的linux容器 编辑: 我在VS2017中发现了cloud explorer,它有

我正在为Linux容器使用Azure应用程序服务。我按照他们的说明启用了SSH()

这是可行的,但它不会在公共端口上公开SSH。你必须通过他们的界面,所以我不知道如何设置VSDBG

远程调试说明如下:

它通过SSH将VisualStudio连接到服务器上的进程来工作

鉴于Azure是Microsoft的产品,我必须假设他们的生态系统中有一种连接到调试会话的方法,但我找不到说明如何操作的文档

如何调试应用程序服务中的linux容器

编辑:

我在VS2017中发现了cloud explorer,它有一个附加选项,但给出了错误:

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)
我想我需要修改容器

编辑:

我找到了在windows映像上工作的示例:

我需要弄清楚如何在linux中做同样的事情