Skip to content

Remote Debugging Azure App Service

Photo by Mikhail Nilov: https://www.pexels.com/photo/a-man-looking-at-a-computer-screen-with-data-6963944/

Ok, today I stumbled upon classic error when trying to remote debug Azure App Service. I wanted to share this error and solution as a blog post so I can come back to this when I encounter this again 😄.

The current version of VS Remote Tools does not match this version of Visual Studio. If errors occur, try installing the matching version of VS Remote Tools.
Class not registered

Ok the error message is actually a bit misleading here. You need to navigate into Azure Portal, open up the App Service Configuration page that you are trying to debug and enable the remote debugging + select correct Visual Studio version. As of today the VS2022 is only supported version.

Enable remote debugging from App Service Configuration page

Now when the remote debugging is enabled, we can use the Attach to Process functionality in Visual Studio to remotely debug our App Service.

Remember to toggle off the Remote debugging when you don’t need it as it may raise some security issues.

Use Visual Studio Attach to Process to debug remotely. Connection Target needs to match the app service (use Find…) to select correct app service.