Search code examples
c#visual-studio-2015comarcobjects

Enable native code debugging to deep into COM-object


I have some code that uses a 3rd-party lib (ArcObjects) exposed by COM. So for instance there´s the IGeometry-interface.

IGeometry geometry = GetGeometry();

Now when I want to look at the objects members I open a QuickWatch:

enter image description here

I´ve read several issues that all point to the "enable native code debugging"-option in Visual Studio 2015. I´ve already enabled that option to no avail.

How can I get the debugger to expose the members of the COM-object?

EDIT: When working with VS2010 and .NET 3.5 this works:

enter image description here


Solution

  • As suggested in the comments I posted that question on gis.stackexchange.com also, from which I quote our solution:

    In Visual Studio under Tools-->Options-->Debugging enable the option "Use Managed Compatibility Mode".