Forum Discussion
Remote debug options for Linux container on App Services
We run .Net hosted on Linux Docker containers running in App Service. This makes debugging very difficult as while there is an option for remote debugging, this is only for Windows containers.
https://learn.microsoft.com/en-us/visualstudio/debugger/remote-debugging-azure-app-service?view=visualstudio
The only option I can find for Linux is the one detailed in the link below from 2018 which involves running an SSH server in the Docker container and using an extension which doesn't seem to have a stable version.
az extension add --name webapp
az : WARNING: No stable version of 'webapp' to install. Preview versions allowed.
https://azure.github.io/AppService/2018/05/07/New-SSH-Experience-and-Remote-Debugging-for-Linux-Web-Apps.html
Are there any currently supported options for remote debugging in Linux containers? Are there any plans to introduce the remote debug feature for Linux App Services?
1 Reply
Seems no, Visual Studio remote debugging is NOT supported for Linux App Service (including containers).The built‑in “Remote Debugging” feature only applies to Windows App Service, for Linux:You must use SSH / attach-to-process / tunneling-based approaches, to my understanding, there is no roadmap yet for full remote debugging parity to Linux App Service.\
Remote Debug ASP.NET Core on Azure App Service - Visual Studio (Windows) | Microsoft Learn