<?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: Can't debug using Sharpdevelop in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/can-t-debug-using-sharpdevelop/m-p/7191250#M61962</link>
    <description>&lt;P&gt;&amp;nbsp;@Anonymous ,&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I used to have the same threading issue when I started to code few years back. At one point, I got really frustrated and had to reinstall my OS. After some time, the same issue started to pop up. After several sleepless nights and almost at the verge of losing my senses, I found why it happens.&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;Some of the add-ins that you have installed might be causing this issue. Reason behind this is the&lt;STRONG&gt; add-in could be obfuscated&lt;/STRONG&gt; with &lt;STRONG&gt;"Anti-Debug Protection"&lt;/STRONG&gt;. More common to happen if the addin was obfuscated using &lt;STRONG&gt;"confuser"&lt;/STRONG&gt; application.&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;While controlling the way how an add-in is obfuscated is not in your reach, you can control the way they affect your debugging standards. The solution that i follow is as below.&lt;OL&gt;&lt;LI&gt;After compiling the code using sharpdevelop. Close Revit.&lt;/LI&gt;&lt;LI&gt;Go to &lt;STRONG&gt;"C:\ProgramData\Autodesk\ApplicationPlugins" . &lt;/STRONG&gt;Copy all the folders/contents inside this folder and move them to somewhere safe. I usually move them to a folder in my Mydocuments.&lt;/LI&gt;&lt;LI&gt;Open Revit. Do the debugging. It should run like a charm.&lt;/LI&gt;&lt;LI&gt;Once the Debugging is complete and satisfied with the work, you can move your addins back to the Application plugins folder.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/UL&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>Thu, 29 Jun 2017 17:35:58 GMT</pubDate>
    <dc:creator>RmsMali</dc:creator>
    <dc:date>2017-06-29T17:35:58Z</dc:date>
    <item>
      <title>Can't debug using Sharpdevelop</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/can-t-debug-using-sharpdevelop/m-p/6684763#M61958</link>
      <description>&lt;P&gt;I keep getting the following error when I press "Step Into" in the Macro Manager:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Cannot intercept exception. Debugged program can not be continued and properties can not be evaluated.
System.ExecutionEngineException
   at static System.Void &amp;lt;Module&amp;gt;.⁮‫⁭‌‍‬⁫‮⁬‍⁮‌⁪⁫⁬‬⁪‪⁬‍‎⁯‌‏⁬‌‍‎​‪⁪‏‮‎⁪‮⁯‍⁬‏‮(System.Object )
   at static System.Void System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx)
   at static System.Void System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx)
   at static System.Void System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state)
   at System.Void System.Threading.ThreadHelper.ThreadStart(System.Object obj)&lt;/PRE&gt;&lt;P&gt;I have to completely shut down Revit and can't debug anything. I am running Revit 2016 under Windows 10 (64bit).&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2016 09:34:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/can-t-debug-using-sharpdevelop/m-p/6684763#M61958</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-13T09:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can't debug using Sharpdevelop</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/can-t-debug-using-sharpdevelop/m-p/7162657#M61959</link>
      <description>&lt;P&gt;Dear pkhlineworks:&lt;/P&gt;&lt;P&gt;Did you make progress in using SharpDevelop for Revit? &amp;nbsp;I am looking into this to create macros for my design work, and I find the Rvit 2017 SharpDevelop &amp;nbsp;VB.net menu to be lacking the debug commands. &amp;nbsp;The SharpDevelop website shows a complete Debug menu, which was posted by Matt Ward.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gratefully,&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 18:36:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/can-t-debug-using-sharpdevelop/m-p/7162657#M61959</guid>
      <dc:creator>AAAStructural</dc:creator>
      <dc:date>2017-06-19T18:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can't debug using Sharpdevelop</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/can-t-debug-using-sharpdevelop/m-p/7181336#M61960</link>
      <description>&lt;P&gt;No I have not been able to resolve this.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 07:47:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/can-t-debug-using-sharpdevelop/m-p/7181336#M61960</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-27T07:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can't debug using Sharpdevelop</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/can-t-debug-using-sharpdevelop/m-p/7184102#M61961</link>
      <description>&lt;P&gt;Dear PKHLINEWORKS, The code is beyond my beginning skills! &amp;nbsp;Thank you for replying. &amp;nbsp;An Architect named Michael Kilkelly helped me with my debugger questions. &amp;nbsp;I didn't realize you had to enter debug from Revit dialog box. &amp;nbsp;Perhaps you can contact him at Archsmarter.com. &amp;nbsp;Point here is finding the resources when you get stuck, however skilled. &amp;nbsp;I hate getting stuck!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 03:40:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/can-t-debug-using-sharpdevelop/m-p/7184102#M61961</guid>
      <dc:creator>AAAStructural</dc:creator>
      <dc:date>2017-06-28T03:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can't debug using Sharpdevelop</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/can-t-debug-using-sharpdevelop/m-p/7191250#M61962</link>
      <description>&lt;P&gt;&amp;nbsp;@Anonymous ,&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I used to have the same threading issue when I started to code few years back. At one point, I got really frustrated and had to reinstall my OS. After some time, the same issue started to pop up. After several sleepless nights and almost at the verge of losing my senses, I found why it happens.&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;Some of the add-ins that you have installed might be causing this issue. Reason behind this is the&lt;STRONG&gt; add-in could be obfuscated&lt;/STRONG&gt; with &lt;STRONG&gt;"Anti-Debug Protection"&lt;/STRONG&gt;. More common to happen if the addin was obfuscated using &lt;STRONG&gt;"confuser"&lt;/STRONG&gt; application.&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;While controlling the way how an add-in is obfuscated is not in your reach, you can control the way they affect your debugging standards. The solution that i follow is as below.&lt;OL&gt;&lt;LI&gt;After compiling the code using sharpdevelop. Close Revit.&lt;/LI&gt;&lt;LI&gt;Go to &lt;STRONG&gt;"C:\ProgramData\Autodesk\ApplicationPlugins" . &lt;/STRONG&gt;Copy all the folders/contents inside this folder and move them to somewhere safe. I usually move them to a folder in my Mydocuments.&lt;/LI&gt;&lt;LI&gt;Open Revit. Do the debugging. It should run like a charm.&lt;/LI&gt;&lt;LI&gt;Once the Debugging is complete and satisfied with the work, you can move your addins back to the Application plugins folder.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/UL&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>Thu, 29 Jun 2017 17:35:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/can-t-debug-using-sharpdevelop/m-p/7191250#M61962</guid>
      <dc:creator>RmsMali</dc:creator>
      <dc:date>2017-06-29T17:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can't debug using Sharpdevelop</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/can-t-debug-using-sharpdevelop/m-p/7191992#M61963</link>
      <description>&lt;P&gt;That got it. I guess SharpDev is trying to load debugging symbols from all the addins, not just the macros.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also check the users home directory and look under "appdata\roaming\Autodesk\Revit\Addins" there could be some more addins installed there.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 21:58:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/can-t-debug-using-sharpdevelop/m-p/7191992#M61963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-29T21:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can't debug using Sharpdevelop</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/can-t-debug-using-sharpdevelop/m-p/7575089#M61964</link>
      <description>&lt;P&gt;This helped me.&amp;nbsp; I created a script to set all of my addins "disabled" and i don't get the annoying threading glitches.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 14:10:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/can-t-debug-using-sharpdevelop/m-p/7575089#M61964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-27T14:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can't debug using Sharpdevelop</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/can-t-debug-using-sharpdevelop/m-p/8430078#M61965</link>
      <description>&lt;P&gt;I had no idea that this could be a problem!&lt;/P&gt;
&lt;P&gt;But this just solved the problem of the day. One of&amp;nbsp;the addins that we purchaised has this kind of protection and it completely kills revit when you attach the visual studio debugger . Just spent over an hour trying to figure out what the problem was.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a developer I think this kind of practice is a awful. Find another way of protecting your code!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 13:32:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/can-t-debug-using-sharpdevelop/m-p/8430078#M61965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-28T13:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can't debug using Sharpdevelop</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/can-t-debug-using-sharpdevelop/m-p/10513434#M61966</link>
      <description>&lt;P&gt;Thanks you sooo much!! This really saved my week &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 08:28:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/can-t-debug-using-sharpdevelop/m-p/10513434#M61966</guid>
      <dc:creator>sebastianB65SE</dc:creator>
      <dc:date>2021-08-02T08:28:16Z</dc:date>
    </item>
  </channel>
</rss>

