debugging information cannot be found or does not match visual studio's

后端 未结 14 1700
醉酒成梦
醉酒成梦 2020-11-29 04:11

I copied an existing project and renamed the folder. Now I get this error when I try to compile the application

debugging information cannot be found

14条回答
  •  春和景丽
    2020-11-29 05:00

    Enable PDB creation by:

    Right click on MyProject > Properties > Debugging:

    • C/C++ > General > Debug Information Output = Program Database (/Zi)
    • Linker > Debugging > Generate Debug Info = Yes (/DEBUG)

    Clean MyProject, restart Visual Studio (just to be sure), rebuild MyProject. The output folder should then contain *.pdb files.

    If you debug optimized/release code consider switching off optimization via

    • C++ > Optimization > Optmization = Disabled (/Od)

提交回复
热议问题