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

后端 未结 14 1715
醉酒成梦
醉酒成梦 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 04:54

    This happens to me every now and then, while debugging code and making changes it seems like visual studio caches the pdb information and sometimes it gets stuck. Doing a Rebuild solution, deleting the pdb and creating a new one doesn't fix the problem.

    Of course I do have the generate debug information on and all that it's needed, specially since this happens while debugging the code several times.

    Visual Studio seems to be happy with the in-memory pdb and refuses to update it, regardless of time-stamps or even size changes in the pdb.

    The only way to reset this is to exit Visual Studio (the IDE) and restart it again.

    In some rare occurrences, the IDE might be still running in the background (process explorer shows it there) and might hold the handle to the file open. You can kill the process before restarting the IDE.

    Good Luck

提交回复
热议问题