Search code examples
c++debuggingvisual-studio-2012visual-studio-debugging

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


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!


Solution

  • [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.