<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Debug ArcObjects on .NET 4.x in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/debug-arcobjects-on-net-4-x/m-p/440164#M11948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will remember &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;. Greatly appreciate your feedback. I searched a lot for this and it took me a week or so.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Dec 2018 16:16:13 GMT</pubDate>
    <dc:creator>CarstenSchumann</dc:creator>
    <dc:date>2018-12-14T16:16:13Z</dc:date>
    <item>
      <title>Debug ArcObjects on .NET 4.x</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/debug-arcobjects-on-net-4-x/m-p/440161#M11945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We recently migrated our code for ArcObjects from ArcGIS 10.2.2 and .NET 3.5 to ArcGIS 10.6.1 and .NET 4.5.1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To debug our program we heavily use the debugging-fgeatures from Visual Studio. E.g. we have code like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;IGeometry geometry &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// get a geometry&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// do something with the geometry‍‍‍‍‍‍‍‍‍‍‍‍&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;With .NET 3.5. it was possible to examine this object, see here&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://i.stack.imgur.com/T5K4K.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However since .NET 4 this is not anymore possible, see thie following image:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://i.stack.imgur.com/Xaauv.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also posted this question on &lt;A href="https://stackoverflow.com/questions/50467025/enable-native-code-debugging-to-deep-into-com-object" rel="nofollow noopener noreferrer" target="_blank"&gt;StackOverflow&lt;/A&gt;&amp;nbsp;and &lt;A href="https://gis.stackexchange.com/questions/295441/quickwatch-on-com-objects-does-not-show-any-information" rel="nofollow noopener noreferrer" target="_blank"&gt;gis.stackexchange&lt;/A&gt; to no avail. All I got to know is that is has to do with the way .NET wraps the unmanaged COM-objects. All my references to ESRI-assemblies have the "Embed Interop Types"-property set to false, as suggested in the answer on StackOverflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So why is this and how can we see the COM-objects properties on .NET 4.x?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:42:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/debug-arcobjects-on-net-4-x/m-p/440161#M11945</guid>
      <dc:creator>CarstenSchumann</dc:creator>
      <dc:date>2021-12-11T19:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Debug ArcObjects on .NET 4.x</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/debug-arcobjects-on-net-4-x/m-p/440162#M11946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We finally solved that problem by enabling an option in Visual Studio:&lt;/P&gt;&lt;P&gt;Tools--&amp;gt;Options--&amp;gt;Debuuging--&amp;gt; enable "Use Managed Compatibility Mode"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 09:03:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/debug-arcobjects-on-net-4-x/m-p/440162#M11946</guid>
      <dc:creator>CarstenSchumann</dc:creator>
      <dc:date>2018-10-02T09:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Debug ArcObjects on .NET 4.x</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/debug-arcobjects-on-net-4-x/m-p/440163#M11947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If we ever cross paths I owe you a beer (or two)! Just been banging my head against a wall with exactly the same issue. I too had just made the jump from 10.2 to 10.6 and upgraded to VS 2017 community and could not debug correctly. How on Earth did you work out it was this setting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2018 08:17:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/debug-arcobjects-on-net-4-x/m-p/440163#M11947</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2018-12-04T08:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Debug ArcObjects on .NET 4.x</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/debug-arcobjects-on-net-4-x/m-p/440164#M11948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will remember &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;. Greatly appreciate your feedback. I searched a lot for this and it took me a week or so.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2018 16:16:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/debug-arcobjects-on-net-4-x/m-p/440164#M11948</guid>
      <dc:creator>CarstenSchumann</dc:creator>
      <dc:date>2018-12-14T16:16:13Z</dc:date>
    </item>
  </channel>
</rss>

