Reputation: 345
After couple of hours of looking in the internet without succeed.
I am working in visual studio 2013. I have a solution with c# project that call c++.
I put break point in a function in the c++ project and got the following warning:
"The breakpoint will not currently be hit. No symbols have been loaded for this document".
So I open Debug → Modules Window to check the symbols. And I saw that the DLL of the C++ project does not appears in the Modules Window.
The application is running correctly.
I looked at the dump file of the application and it took the dll from the right place.
I have an older version of this solution and there I can put break point. If I compare the content of the Modules Window of the two solutions, the old one contains much more dlls.
Any Idea for what and where I should look for the solution?
Upvotes: 6
Views: 2719
Reputation: 4472
It could be that you need to enable mixed mode debugging to allow you to debug in both C# and C++ at the same time. This is a project level setting so that would explain why your older project works.
The basic steps should be something like:
Set Debugger Type to Mixed or Auto.
In Solution Explorer, right-click the C# project and select Properties.
Upvotes: 2
Reputation: 376
Confirm that you are not running in release mode.
delete bin/obj folder
clean solution and rebuild it.
Hope this will help you
Upvotes: 0