Debugging VS 2012 Unexpected error reading characters while processing <file.exe>

I have a problem debugging my program in Visual Studio 2012 - when I try to debug code by inserting some breakpoints, they don't seem to work - when I hover over them with a pop-up message

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

I tried to find similar problems on the Internet, but I did not find any solutions. I would appreciate any help, thanks!

+7
source share
3 answers

[VS2012] Well, I got an answer that solved this problem, so I will post it here so that people do not have this problem in the future.

The solution is to change

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

from Auto to Mixed. Breakpoints will work automatically.

[VS2015] Closing all instances of VS 2015 and restarting resolves the issue, at least for a while. Hotfix 2012 does not work.

+8
source

For Visual Studio 2017, closing all open instances and restarting helped me. I could have avoided closing, for example, with open solutions not related to this, but I have not tested this.

+1
source

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

0
source

Source: https://habr.com/ru/post/958206/


All Articles