I have a solution with a c# win-exe-64 project referencing a c++ (managed,cli,64) library vcxproj. Using Visual Studio 16.10.3.
All works fine and I can use the classes from c++ in c#.
Problem is the debugging, stepping in the c++ code is not working and also breakpoints in the c++ code are not hit. The breakpoints in c++ are showing "Breakpoint will not currently be hit. No symbols have been loaded for this document."
In the ide when I check Modules window, it says: "Symbols loaded" for this specific dll. In the Process window it indicates "Debugging: Managed (.NET 4.x), Native"
I tried so many settings already:
- Ide: Tools-Options-Debugging-Use managed compatibility mode: on/off
- win-exe: properties: Enable native code debugging: on/off
- c++ lib: Properties.Debugging-Debugger Type: Mixed(.net framework), Native
But nothing helps, breakpoints are just not hit.
What also wonders me, "Goto definition" on a c++class member in c#-code just brings the class definitions generated from metadata, it doesn't go to the source.
Any ideas?
Update: the screenshot showing modules-window, dll and pdbs loaded from exe-folder. Right windows main process c# exe calling c++ dll in left window.