Debugging Library Code with Visual Studio's Linux support
I'm using Visual Studio 2017's integration to build and debug a CMake Linux application locally in the Windows Subsystem for Linux. When running the application, Visual Studio uses an ssh connection to localhost to run cmake -DCMAKE_BUILD_TYPE="Debug" .. and make , then uses gdbserver to debug the application. This works fine for my application's own code, including breakpoints and line-by-line debugging. This application links to a library file, libhypro.so.17.09 , which is also part of a CMake project. This library is also built locally (stored in my Windows file system, built within Linux