Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Some DLLs missing from Modules Window

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?

like image 742
Ditza Avatar asked Nov 08 '22 03:11

Ditza


1 Answers

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:

  1. In Solution Explorer, right-click the C++ project and select Properties.
  2. In the Property Pages dialog box, expand the Configuration Properties node, and then select Debugging.
  3. Set Debugger Type to Mixed or Auto.

  4. In Solution Explorer, right-click the C# project and select Properties.

  5. Select Debug
  6. In Enable Debugger section choose Enable native code Debugging
like image 132
Nanhydrin Avatar answered Nov 15 '22 08:11

Nanhydrin