VS 2012 debugging Unexpected symbol reader error while processing <file.exe>

旧巷老猫 提交于 2019-12-10 13:16:10

问题


I have a problem with debugging my program in Visual Studio 2012 - when I try to debug the code by inserting some breakpoints, they seem not to work - when I hover on them a message pops up

The breakpoint will not currently be hit. Unexpected symbol reader error while processing <file.exe>

I tried searching for similar problems in the internet but I haven't found any solutions I'd appreciate any help, thanks!


回答1:


[VS 2012] Ok I got the answer that fixed this problem, so I'll post this here so that people have no such problem in the future.

A solution is to change

   Debug -> (app) Properties-> Configuration Properties -> Debugging

from Auto to Mixed. The breakpoints will automatically work.

[VS 2015] Closing all instances of VS 2015 and restarting fixes the problem for a while at least. The 2012 fix does not work.




回答2:


For Visual Studio 2017, closing all open instances and restarting worked for me. I might have gotten away with closing fewer, for example instances with unrelated solutions open, but I have not tested that.




回答3:


I had a VS 2017 C++ DLL called from VS 2013 C# application. Upgrading the application to VS 2017 solved the problem.



来源:https://stackoverflow.com/questions/20020886/vs-2012-debugging-unexpected-symbol-reader-error-while-processing-file-exe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!