Knitschi / CPFCMake

A component of the CMakeProjectFramework. It provides the CMake code that implements a CI-pipeline.
MIT License
2 stars 2 forks source link

Investigate if deployed source file can be found automatically by .pdb files. #33

Open Knitschi opened 6 years ago

Knitschi commented 6 years ago

The goal of the investigation is to manually construct a solution that allows debugging packages without the need of manually searching for source files in the Visual Studio pop-up dialog.

Because .pdb files hold only absolute pathes to the .cpp file that belongs to them, the source files of a package are not automatically found when debugging into a package. It somehow seems to be possible to specify a source file server command in the .pdb file which is intended to load sources from a central server. Maybe this mechanism can be high-checked to load sources from a relative path in the package.

More Information: https://www.codeproject.com/Articles/245824/Sourcepack-indexing-PDB-files-with-source-archive https://github.com/MicrosoftDocs/visualstudio-docs/blob/master/docs/debugger/specify-symbol-dot-pdb-and-source-files-in-the-visual-studio-debugger.md

If this is possible, create a task for implementing the solution in CPFCMake.

Knitschi commented 5 years ago

Visual Studio also allows adding directories that contain sources to the solution. Maybe we can do this via cmake with customly generated .user files.