I am trying to remote debug azure function but every time getting below exception, I have publish function project with debug mode, and tried from cloud explorer to attach debugger but getting below exception
System.Runtime.InteropServices.COMException (0x89710023): Unable to connect to the Microsoft Visual Studio Remote Debugger named 'functionappurl'. The connection with the remote endpoint was terminated.at Microsoft.WebTools.Azure.VS.Operations.IDebuggerInternal120.ConnectToServer(String szServerName, VsDebugRemoteConnectOptions[] pConnectOptions, CONNECT_REASON ConnectReason, Int32 fIncrementUsageCount, IDebugCoreServer3& ppServer) at Microsoft.WebTools.Azure.VS.Operations.RemoteDiagnosticsSessionBase`1.ConnectToServer(String site, String user, String password)
Also on portal done this settings and while publishing below is settings of publish profile