Debug SPHinXsys in VS Code with vcpkg installed library
You can do line-by-line debug of SPHinXsys in VS Code even into the vcpkg installed library.
By default, the vcpkg installed debug library is in the directory of ~\vcpkg\installed\x64-windows\debug\lib
.
The source code is not included in the library,
but you can find it in the directory of ~\vcpkg\buildtrees\<library_name>\src\<version>
.
However, vcpkg usually does not keep the source code after the library is built.
To do line-by-line debug, you need to
-
Remove the library fully by
./vcpkg remove <library_name> --recurse
. -
Reinstall the library by
./vcpkg install <library_name> --editable
.
After that, GDB will find the source files and the debug can be carried on.