I have a C++ DLL project (x86) that I need to debug. This DLL is consumed by an exe.
I can easily attach the DLL project in VS2017 to a native exe (x86). When I set breakpoints in the C++ DLL project in VS2017, these break points are hit. This is the normal, desired behaviour.
Now I have attached the C++ DLL project to a .NET exe (compiled as x86). Break points are not hit, and I don't have any idea why that doesn't work like with a native exe.
I have unchecked the option "Use Application Framework", but that didn't change anything.
I have also tried the option "Enable native code debugging" without any success. Also, I have tried to attach it to a Debug version of the NET exe and to a Release version of the NET exe.
I can see that VS2017 attaches to the correct process as when I close the NET exe, VS2017 goes out of debugging mode.
However, breakpoints are not hit.
Is there anything special that I have to take care of?