title: Debugging Managed .NET Code Called From Unmanaged C++
body: <p>I've read through the solutions available on SO, but nothing so far has corrected my issue. My start-up project is an unmanaged C++ project (We'll call it TestWrapper). The goal is to have the TestWrapper call a managed C++ project that then calls my C# project. This is working fine and I have no issues running it.</p>
  
  <p>However, I have an exception that has been occuring in my C# code. For some reason, the breakpoints do not get hit and the actual debug break occurs inside of <code>ntdll.dll</code>. I have tried right clicking on the C# project and enabling unmanaged debugging but this does not fix the issue. If anyone could point me toward a solution I'd be extremely grateful.</p>
  
  <p>I'm going ahead and include the project layout:</p>
  
  <pre><code>TestWrapper (unmanaged C++) -&gt; ManagedWrapper (managed C++) -&gt; MyCSharpProject (C#)
  </code></pre>
  
  <p>I have a feeling it lies in the configuration of the debugging, but I'm not knowledgeable enough to even know where to begin to look.</p>