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

 

posted @ 2015-11-10 14:15  細水長流  阅读(905)  评论(0编辑  收藏  举报