Msvc "breakpoint not currently deleted"

MSVS 2013: I have a VC and C ++ project - the static library code that I want to go into from my exe project, which is in the same solution. However, the debugger continues to tell me that it will not hit breakpoints, as it will not be able to load the corresponding debugging symbols for the static library ("No breakpoint will be deleted at this time. No characters have been loaded for this document") . Other static libraries in one solution work. I just recently added a new one, since I wanted to enter some kind of code to understand what was going on. I added the build dependency on the exe to lib project, I don’t know if this has an effect, but I thought it won’t hurt. I also tried cleaning and restoring. What can be a hint and what I don’t get: why does VS try to load debugging symbols, first of all, when it received the source code?

Funny, I have another solution that also uses the same static lib project, it works there, so the problem does not seem to be mixed up in the lib project. I compared all the linker and compiler settings of both exe projects and did not find any suspicious differences.

Any ideas on what the problem is would be greatly appreciated.

+5
source share
1 answer

There are several possible reasons for this:

  • The function you set the breakpoint was built in (check the time optimization /LTCG and disable them)
  • You created your library without debugging information (check the /DEBUG flag)
  • When connecting a debugger, Visual Studio did not find the .pdb file containing debugging information (this causes a warning in the output window)
  • The above compiler and linker options do not match (you should see warnings in this case)

Try the following: use the standard Debug assembly for both the static library and the executable project that you are using. Link to the library project in the executable project and DONT explicitly adds the library to Linker-> Input-> Additional Dependencies.

+3
source

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


All Articles