简体   繁体   中英

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 inte.net but I haven't found any solutions I'd appreciate any help, thanks!

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

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.

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

Just a side note to the answer accepted, if you are debugging remotely, you should checkout /DEBUG:FULL in Linker->Debugging .

Beginning in Visual Studio 2017, the build system in the IDE defaults to /DEBUG:FASTLINK.

This limited PDB can't be used for debugging when the required build products are not available, such as when the executable is deployed on another computer.

Source: https://docs.microsoft.com/en-us/cpp/build/reference/debug-generate-debug-info?view=vs-2019

In VS2017, I have to clean up and close the whole solution, then delete the.vs folder from the solution folder, then recompile to fix it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM