Linker errors and impossibility to debug after visual studio update

Markus Forrer 1 Reputation point
2021-05-14T05:36:20.22+00:00

I have run an update of Visual Studio 2019 from version 16.8.3 to 16.9.5. Since then I have big problems!
When building a C++ project (v142) I get a lot of linker warnings:

warning LNK4099: PDB 'XY.pdb' was not found

Debugging the project is no longer possible. I can debug the identical project on another computer on which VS version 16.8.3 is still installed without any problems.
Have others had this experience?

Developer technologies Visual Studio Debugging
Developer technologies Visual Studio Setup
Developer technologies Visual Studio Other
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,436 Reputation points Microsoft External Staff
    2021-06-11T08:44:04.657+00:00

    Hello @Markus Forrer ,

    Not sure if the XY.pdb is a system related .pdb file, please also check this document: Configure symbol locations and loading options and try to select Microsoft Symbol Servers option > choose Load all modules, unless exclude then rebuild again.

    Best Regards,
    Tianyu

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.