<?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: `Use managed compatibility mode` or `Enable native code debugging`? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6870958#M60303</link>
    <description>&lt;P&gt;It seems that the difference in behavior is caused by Revit versions... For example, for AutoCAD 2017 was released SP1 specially for compatibility with a debugger.&lt;/P&gt;</description>
    <pubDate>Sat, 11 Feb 2017 11:54:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-02-11T11:54:26Z</dc:date>
    <item>
      <title>`Use managed compatibility mode` or `Enable native code debugging`?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6868592#M60295</link>
      <description>&lt;P&gt;Visual Studio 2015&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I write .net-plugins for Autodesk Revit. Revit is &lt;EM&gt;unmanaged&lt;/EM&gt; application. So, for successfully &lt;EM&gt;debugging&lt;/EM&gt; I am to set into &lt;STRONG&gt;ON&lt;/STRONG&gt; either for &lt;STRONG&gt;&lt;EM&gt;Use managed compatibility mode&lt;/EM&gt;&lt;/STRONG&gt; option or for &lt;STRONG&gt;&lt;EM&gt;Enable native code debugging&lt;/EM&gt;&lt;/STRONG&gt; option (or for both of them). Otherwise debugging cannot be launched.&lt;/P&gt;
&lt;P&gt;The first of them is applied for all projects. The second of them is used for each project individually.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="0.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/321390i86ADD269DA47463C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0.png" alt="0.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What the difference of these options? I don't understand what they do. What option it is more correct to use in my case?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 11:52:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6868592#M60295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-10T11:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: `Use managed compatibility mode` or `Enable native code debugging`?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6868848#M60296</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hans Passant&lt;/STRONG&gt; answered to me. I marked by &lt;STRONG&gt;bould&lt;/STRONG&gt; info which may be a reason why I am to use this option for Revit add-ins debugging:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="post-text"&gt;
&lt;P&gt;&lt;EM&gt;You do not have to enable unmanaged debugging to debug your plugin. Breakpoints in your code will activate (turn from hollow to solid) when the host application loads your add-in. If you are not sure if this happened then have a look at the Debug &amp;gt; Windows &amp;gt; Modules window.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Enabling unmanaged debugging does not otherwise greatly affect the debugging session, it can however take quite a bit longer to get started and you may need to temporarily disable the symbol server to avoid getting annoyed at it.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The Tools &amp;gt; Options settings have rather poor names. Microsoft has been working on new debugging engines but was forced (or chose) to drop some features. "Use Managed Compatibility Mode" forces an older version of the managed debugger to be loaded, the one that was used in VS2010. It is required when you debug C++/CLI code. &lt;STRONG&gt;It can be also useful in VS2015, its managed debugging engine is very buggy.&lt;/STRONG&gt; You'll miss out on some new debugging features like return value inspection and 64-bit edit+continue. You don't otherwise need it to debug your add-in.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Much the same story for "Use Native Compatibility Mode", it enables an older version of the unmanaged debugging engine, the one in VS2012 afaik. You'll miss out on the new Natvis visualizers. I have not yet found a compelling reason to need it, other than keep the old visualizers working.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks to him.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Feb 2017 13:33:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6868848#M60296</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-10T13:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: `Use managed compatibility mode` or `Enable native code debugging`?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6869909#M60297</link>
      <description>&lt;P&gt;I am not sure I understand. I think that one of these must be enabled, or debugging will not work at all. This makes it sound as if both are optional. That cannot be, can it?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 19:09:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6869909#M60297</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-02-10T19:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: `Use managed compatibility mode` or `Enable native code debugging`?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6870017#M60298</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; I think that one of these must be enabled, or debugging will not work at all.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you are right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt; This makes it sound as if both are optional.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No, you are mistaken (in my opinion).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt; That cannot be, can it?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you are right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt; &lt;EM&gt;&lt;STRONG&gt;You do not have to enable unmanaged debugging to debug your plugin&lt;/STRONG&gt;.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;gt; ...&lt;/P&gt;
&lt;P&gt;&amp;gt; &lt;EM&gt;"&lt;STRONG&gt;Use Managed Compatibility Mode&lt;/STRONG&gt;" forces an older version of the managed debugger to be loaded, the one that was used in VS2010. It is required when you debug C++/CLI code. &lt;STRONG&gt;&lt;U&gt;It can be also useful in VS2015, its managed debugging engine is very buggy&lt;/U&gt;.&lt;/STRONG&gt; &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It means, that we are to use the&amp;nbsp;&lt;EM&gt;Use Managed Compatibility Mode" &lt;/EM&gt; option.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 19:59:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6870017#M60298</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-10T19:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: `Use managed compatibility mode` or `Enable native code debugging`?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6870334#M60299</link>
      <description>&lt;P&gt;Hm... But on my home computer I have other result: the debugging works only when &lt;STRONG&gt;both&lt;/STRONG&gt; options are turned on! Here is video: &lt;A href="https://www.youtube.com/watch?v=E8n-KjyQ-uw&amp;amp;feature=youtu.be" target="_blank"&gt;https://www.youtube.com/watch?v=E8n-KjyQ-uw&amp;amp;feature=youtu.be&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 21:47:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6870334#M60299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-10T21:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: `Use managed compatibility mode` or `Enable native code debugging`?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6870399#M60300</link>
      <description>I have both turned off and debugging works fine (if the Revit.exe.config fix is applied).</description>
      <pubDate>Fri, 10 Feb 2017 22:22:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6870399#M60300</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-02-10T22:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: `Use managed compatibility mode` or `Enable native code debugging`?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6870756#M60301</link>
      <description>&lt;P&gt;Thank you Matt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What version has your VS2015?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is mine:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vs-version.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/321712iA1B8038890B79D30/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vs-version.png" alt="vs-version.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2017 06:57:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6870756#M60301</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-11T06:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: `Use managed compatibility mode` or `Enable native code debugging`?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6870766#M60302</link>
      <description>&lt;P&gt;On my home computer and on my office computer I have the same VS version: VS2015 Enterprise 14.0.25123.00 Update 2.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2017 07:26:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6870766#M60302</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-11T07:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: `Use managed compatibility mode` or `Enable native code debugging`?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6870958#M60303</link>
      <description>&lt;P&gt;It seems that the difference in behavior is caused by Revit versions... For example, for AutoCAD 2017 was released SP1 specially for compatibility with a debugger.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2017 11:54:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6870958#M60303</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-11T11:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: `Use managed compatibility mode` or `Enable native code debugging`?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6870981#M60304</link>
      <description>&lt;P&gt;After installation of VS2015 Update 3 on the home computer the debugging began to be launched successfully for such variant:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Use Managed Compatibility Mode" = ON&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Enable native code debugging" = OFF.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2017 12:28:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6870981#M60304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-11T12:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: `Use managed compatibility mode` or `Enable native code debugging`?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6873312#M60305</link>
      <description>&lt;P&gt;At the moment I'm on VS2013, fully updated. Obviously no edit and continue for x64.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 09:07:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6873312#M60305</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-02-13T09:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: `Use managed compatibility mode` or `Enable native code debugging`?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6876245#M60306</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/98018"&gt;@matthew_taylor&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What&amp;nbsp;&lt;SPAN&gt;Revit.exe.config fix are you referring to, please?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 10:27:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6876245#M60306</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-02-14T10:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: `Use managed compatibility mode` or `Enable native code debugging`?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6876424#M60307</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hmm. I'm talking about the one described here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://bimdev.blogspot.co.uk/2010/11/debugging-net-35-class-with-revit-2011.html" target="_blank"&gt;http://bimdev.blogspot.co.uk/2010/11/debugging-net-35-class-with-revit-2011.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't remember exactly where I first saw it. Figured it was your blog, but it appears not!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have just tried to debug a Revit 2011 (!!) macro using the fix and it doesn't appear to work. Can't&amp;nbsp;get a breakpoint to hit. It used to be my go-to solution.&lt;/P&gt;
&lt;P&gt;I've just tried to debug Revit 2017 (with no alterations to revit.exe.config), and it hits each breakpoint without issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've attached my successful Revit 2017 / Visual Studio Pro 2013 (Update 5) settings, if anyone is interested.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Matt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 11:59:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6876424#M60307</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-02-14T11:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: `Use managed compatibility mode` or `Enable native code debugging`?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/8964496#M60308</link>
      <description>&lt;P&gt;Using Visual Studio 2019 and Revit 2019, I can have both "Use Managed Compatibility Mode" and "Enable native code debugging" disabled without problems.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, if I want to debug in Revit 2018, I need to have Use Managed Compatibility Mode checked.&amp;nbsp; Otherwise Revit crashes on startup and I get the following in VS output window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The program '[3272] Revit.exe' has exited with code 0 (0x0).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 23:31:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/8964496#M60308</guid>
      <dc:creator>MattKincaid</dc:creator>
      <dc:date>2019-08-13T23:31:15Z</dc:date>
    </item>
  </channel>
</rss>

