Unable to connect Visual Studio debugger to Azure Web App

Nick Evans 5 Reputation points
2025-06-19T15:28:46.3+00:00

I have a web app running in Azure. This is a mature app. I have always been able to periodically connect my Visual Studio 2022 debugger to this web app to debug code. At some point in the last month, this has stopped working.

I should say that this app was on a free tier within Azure and I was able to debug it fine. Asking this question previously on this forum suggested that remote debugging is now only possible on paid tiers. As such, I have upgraded to a Basic tier. With that done, I can see that I can now enable Remote Debugging in the App configuration and this configuration "sticks". However I am still unable to connect my Visual Studio debugger to the app. When I try to connect, I get the following error.

The Visual Studio 2022 Remote Debugger (MSVSMON.EXE) does not appear to be running on the remote computer. This may be because a firewall is preventing communication to the remote computer. Please see Help for assistance on configuring remote debugging.

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 hostNameWithPort, String user, String password)

Please note, I have disabled my local firewalls and this does not fix the issue.

I am pretty sure this is an Azure service issue. I have not made any changes to code or configuration of Azure. I routinely login with a debugger once a month or so and have been able to do so for months - until now. I have an Azure Developer's support plan but, apparently this does not give me direct access to Microsoft to discuss service issues.

Does anyone know either how I can go about fixing this issue and/or contact Microsoft directly to report a service issue?

Thank you

Nick

Developer technologies | Visual Studio | Debugging
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Surya Amrutha Vaishnavi Lanka (INFOSYS LIMITED) 245 Reputation points Microsoft External Staff
    2025-07-22T09:14:37.83+00:00

    It looks like Azure Remote Debugging isn’t working even after enabling it and upgrading the tier. Try these steps:

    1. Restart the App Service after enabling Remote Debugging.
    2. Ensure “Remote Debugging” is ON and set to Visual Studio 2022.
    3. Check App Service logs for any startup or permission issues.
    4. Temporarily scale up the App Plan to Standard if Basic still gives issues.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.