The breakpoint will not currently be hit. No symbols have been loaded for this document."

C# exe calls function from a native C++ DLL, and breakpoints set inside C++ source code cannot be hit, VS2012 IDE says that 

The breakpoint will not currently be hit. No symbols have been loaded for this document.

Here are some solutions that might be helpful:

For C# EXE project: 

  • In 'Properties -> Debug-> Enable Debuggers': Check "Enable native code debugging"

For C++ DLL project:

  • In 'Properties -> C/C++ -> Code Generation: Set Runtime Lib to Multi Threaded Debug
  • In 'Properties -> Linker -> Debugging': Set Generate Debug Info to Yes
原文地址:https://www.cnblogs.com/cindy-hu-23/p/4952861.html