![visual studio remote debugging visual studio remote debugging](https://www.codeproject.com/KB/debug/618804/index1.png)
If you install at another location, it should be changed. Visual Studio Code will launch the process specified by pipeProgram and pipeArgs as transferring remote debug commands. "debuggerPath": "/opt/app-root/vsdbg/vsdbg", "name": ".NET Core OpenShift Pod Remote Attach", Then add the below json as an element of the configuration array. vscode/launch.json file or create it if it hasn't been created. Now open the project with Visual Studio code. If you use the dotnet example app, clone the code and checkout dotnetcore-2.0 branch. You should have the same code as the one deployed. It's usually 1, but confirm with the command below, just in case. The PID of a dotnet process is also required. $ curl -sSL | bash /dev/stdin -v latest -l. If you use an older version of a dotnet image, an alternative way is installing vsdbg on your local machine and transferring them. Info: Successfully installed vsdbg at '/opt/app-root/vsdbg' Info: Previous installation at /opt/app-root/vsdbg not found Sh-4.2$ curl -sSL | bash /dev/stdin -v latest -l /opt/app-root/vsdbg -r linux-圆4 The dotnet image version 2.0-7 or later has an unzip command, you can install vsdbg with the steps below. Once the application pod runs, you'll install vsdbg on this pod. If you haven't done so, you can use the example project. To follow the steps below, you may have to deploy ASP.NET Core app on OpenShift. Install and set up vsdbg on docker container Visual Studio Code can integrate other commands than SSH for debugger transport protocol. You can use Microsoft proprietary debugger engine vsdbg with Visual Studio Code (or other Visual Studio products).
#Visual studio remote debugging how to#
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. However, it's strongly not recommended due to security reasons. It used to be if you install and setup SSH server on docker container, you can remote debug with Visual Studio. Since Visual Studio supports SSH protocol, you can remote debug ASP.NET Core process running on the Linux host. Visual Studio provides a graphical remote debugging ASP.NET Core app with Docker Tools for Windows.