Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

523
Views
Remote debug .net core app running in Azure App Services For Containers

I am using Azure App Services For Linux Containers. I have followed their instructions to enable SSH (https://docs.microsoft.com/en-us/azure/app-service/containers/configure-custom-container#enable-ssh).

This works but it doesn't expose SSH on a public port. You have to go through their interface so I have no clue how I am meant to setup up VSDBG.

The remote debugging instructions are here: https://github.com/Microsoft/MIEngine/wiki/Offroad-Debugging-of-.NET-Core-on-Linux---OSX-from-Visual-Studio

It works by connecting visual studio to a process on server via SSH.

Seeing as Azure is a Microsoft product I must assume there is a way with their ecosystem to connect to a debugging session but I can't find the doc that says how to do it.

How do I debug linux containers in App Services?

edit:

I discovered cloud explorer in VS2017 and it has an attach option but it gives error:

System.Runtime.InteropServices.COMException (0x89710023): Unable to connect to the Microsoft Visual Studio Remote Debugger named 'gardner.azurewebsites.net'.  The input data was not in the expected format or did not have the expected value.

   at Microsoft.VisualStudio.Debugger.Interop.Internal.IDebuggerInternal120.ConnectToServer(String szServerName, VsDebugRemoteConnectOptions[] pConnectOptions, CONNECT_REASON ConnectReason, Int32 fIncrementUsageCount, IDebugCoreServer3& ppServer)
   at Microsoft.VisualStudio.Web.Azure.MicrosoftWeb.Operations.RemoteDiagnosticsSessionBase.ConnectToServer(String site, String user, String password)

I think I need to modify container

edit:

I found example for making it work on windows image: https://blogs.msdn.microsoft.com/azuredev/2019/01/30/debugging-docker-containers-attaching/

I need to figure out how to do same thing in linux

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!