I have a dll built from mixed code in VS 2012. This dll is loaded from a .exe built in native C++.
When I debug the dll (via F5 from VS 2012), the breakpoints are not hit. The message is :
No executable code is associated with this line. Possible causes include: preprocessor directives or compiler/linker option
However when I run the exe from Windows explorer then perform "attach to process", all the breakpoints are hit.
I tried changing the debugger type to "Mixed", "Native", "Managed", I also played with debugging options but the results were all the same; except when the debugger type is "managed", the breakpoints seem to be loaded (a filled red circle appears instead of an empty red circle) but are not hit.
Can you please give me an explanation of this strange phenomenon ?