Remote debugging Azure App Service with VS 2019

Andy Sterland picture Andy Sterland · Apr 5, 2019 · Viewed 14.4k times · Source

How do I enable debugging from VS2019 for my .NET app running in an Azure App Service? The portal only supports 2015 and 2017.

Remote debugging options

Answer

Andy Sterland picture Andy Sterland · Apr 5, 2019

You can just connect from Visual Studio 2019 and it should all work without changing the portal settings.

  1. Open Visual Studio and your project
  2. Open Cloud Explorer View -> Cloud Explorer or ctrl+\, ctrl+x
  3. Find your App Service node in Cloud Explorer and select it
  4. Choose Attach Debugger from the context menu or the actions pane

Attach Debugger in Visual Studio