Visual Studio provides a graphical remote debugging ASP.NET Core app with Docker Tools for Windows. Since Visual Studio supports SSH protocol, you can remote debug ASP.NET Core process running on the Linux host. It used to be if you install and setup SSH server on docker container, you can remote debug with Visual Studio. However, it’s strongly not recommended due to security reasons. Now I’ll explain to you how to remote debug your ASP.NET Core on OpenShift with Visual Studio Code by using
oc exec command instead of installing SSH server on docker container. You can use Microsoft proprietary debugger engine
vsdbg with Visual Studio Code (or other Visual Studio products). Visual Studio Code can integrate other commands than
SSH for debugger transport protocol.
Continue reading “Remote debug your ASP.NET Core container on OpenShift with Visual Studio Code”