Visual Studio 2017: Adding a custom debugging data visualizer (.natvis) file causes a perpetual mismatch between precompiled headers and the .pdb file

  • Thread starter Thread starter jba999
  • Start date Start date
J

jba999

Guest

Hi, I am trying to add some custom data visualizers to help with debugging our c++ code. I added the file 'NatVisFile.natvis' to my project, which will contain the custom visualizers. Now, every time I make a small change to my code, for example to 'miximage.cpp' I have to recompile everything, otherwise I get the error message below:

"miximage.cpp(5): error C2859: myprogram.pdb is not the pdb file that was used when this precompiled header was created, recreate the precompiled header.

1>Done building project "myprogram.vcxproj" -- FAILED."

I have rebuilt my program database files and all pch files, but the problem persists.

Any ideas?

Thanks, Jon

Continue reading...
 
Back
Top