Hello,
I would like to connect VS 2019 to a process on the linux system for debugging purposes. (If there is a more convenient way for that, I would like to get to know.)
Firstly, based on the information on this page, https://learn.microsoft.com/de-de/cpp/linux/connect-to-your-remote-linux-computer?view=msvc-160 I created an ssh server on my Linux machine and I connected VS 2019 to my Linux system via ssh
on my Linux machine, I am using a robot in a simulation program (ROS) and C++ code controls it. Debugging is working on my Linux machine using Visual studio code.
Here I attached the process using Visual Studio Code
Here is the debugging using Visual Studio Code on Linux
However, I would like to connect my VS 2019 to this process for debugging purposes.
For that I open VS 2019 and click the "Attach to Process"
Here is the picture for clicking to attach process
After that , I connected to my Linux machine via SSH in VS 2019 and attached the process as I shown in the following picture.
Attaching Process to the specific Process ID on Linux machine
Selecting debug code type
Then I see a empty screen in VS 2019 shown in following picture.
After attaching process ID
Do you have any idea how can I do this? or do you know different and more convenient way?