CGold icon indicating copy to clipboard operation
CGold copied to clipboard

PDB: working with debug symbols

Open ruslo opened this issue 8 years ago • 4 comments

OpenCV example: https://github.com/opencv/opencv/blob/bf4c5bef7fa254e996f31d3e3d7f81ce63716c13/cmake/OpenCVModule.cmake#L827-L836

CMake variables:

  • https://cmake.org/cmake/help/latest/variable/CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY.html
  • https://cmake.org/cmake/help/latest/variable/CMAKE_PDB_OUTPUT_DIRECTORY.html

ruslo avatar Aug 19 '16 14:08 ruslo

This feature can be used as a workaround: https://github.com/ruslo/hunter/issues/230 (?)

ruslo avatar Oct 04 '16 20:10 ruslo

Example: https://github.com/hunter-packages/googletest/pull/11/commits/48bc5340230e09a4ea5086f024a2d833e6aff201

ruslo avatar Oct 20 '16 21:10 ruslo

Visual Studio "/Z7, /Zi, /ZI (Debug Information Format)":

  • https://msdn.microsoft.com/en-us/library/958x11bc.aspx
  • https://docs.microsoft.com/en-us/cpp/build/reference/z7-zi-zi-debug-information-format

ruslo avatar Oct 25 '17 20:10 ruslo

Examples:

  • https://github.com/forexample/package-example/blob/00335ff3f39c3b82a4b4b6095412b5a9e3aeda81/Foo/CMakeLists.txt#L24-L85
  • https://github.com/cgold-examples/fruits/blob/a3d9bb315cb445a3fe808750db15f1ef9f50f1e7/CMakeLists.txt#L159-L187
  • https://cgold.readthedocs.io/en/latest/tutorials/install/layout.html

TODO: Install sources for debugging?

ruslo avatar May 21 '18 23:05 ruslo