<?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: debugging mode with visual studio Breakpoint in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/debugging-mode-with-visual-studio-breakpoint/m-p/9567131#M33745</link>
    <description>&lt;P&gt;Lack of hitting break points usually indicates you are pointing to wrong assembly location or VS isn't attached to the process.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Check:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Build &amp;gt; Configuration Manager&lt;/P&gt;&lt;P&gt;Has 'Active solution configuration' set to Debug&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Check:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Path of the dll file location in manifest file (.addin) is matching relative 'Output path' on Build Tab within the properties of your visual studio solution. The path saved in the sample may not be where you saved the project solution. Although I would have expected you to get an error if the assembly file wasn't found.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jun 2020 14:48:20 GMT</pubDate>
    <dc:creator>RPTHOMAS108</dc:creator>
    <dc:date>2020-06-08T14:48:20Z</dc:date>
    <item>
      <title>debugging mode with visual studio Breakpoint</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/debugging-mode-with-visual-studio-breakpoint/m-p/9566889#M33744</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;i get in trouble while trying to go through&amp;nbsp;&lt;A href="https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/simplecontent/content/lesson-4-debugging-your-code.html" target="_blank" rel="noopener"&gt;lesson 4&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;i succeed to lunch up revit in "Start External Program".&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;AddIn manifest&amp;nbsp;file is up-to-date to right location.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then i chose line with breakpoint but when i start debugg the visual studio doesn't&amp;nbsp;stop to "Step By Step" at any line, it just go through&amp;nbsp;it and pass over.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;any update on this lesson? i try to find the best way to pass&amp;nbsp;through the code and find out some bugs .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 13:09:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/debugging-mode-with-visual-studio-breakpoint/m-p/9566889#M33744</guid>
      <dc:creator>amir.aroesti</dc:creator>
      <dc:date>2020-06-08T13:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: debugging mode with visual studio Breakpoint</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/debugging-mode-with-visual-studio-breakpoint/m-p/9567131#M33745</link>
      <description>&lt;P&gt;Lack of hitting break points usually indicates you are pointing to wrong assembly location or VS isn't attached to the process.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Check:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Build &amp;gt; Configuration Manager&lt;/P&gt;&lt;P&gt;Has 'Active solution configuration' set to Debug&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Check:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Path of the dll file location in manifest file (.addin) is matching relative 'Output path' on Build Tab within the properties of your visual studio solution. The path saved in the sample may not be where you saved the project solution. Although I would have expected you to get an error if the assembly file wasn't found.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 14:48:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/debugging-mode-with-visual-studio-breakpoint/m-p/9567131#M33745</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2020-06-08T14:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: debugging mode with visual studio Breakpoint</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/debugging-mode-with-visual-studio-breakpoint/m-p/9570367#M33746</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1035859"&gt;@RPTHOMAS108&lt;/a&gt;&amp;nbsp; thanks for respond&lt;/P&gt;&lt;P&gt;i have just double check what you mention in your comment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i make sure the manifest file point to the correct address and check about the configuration manager.&lt;/P&gt;&lt;P&gt;see the attached picture.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the breakpoints doesn't stop the code and its just pass through it.&lt;/P&gt;&lt;P&gt;any other ideas??&lt;/P&gt;&lt;P&gt;&amp;nbsp;Amir&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-06-09 22_40_41-Autodesk Revit 2020.2 - [Project1 - Section_ Section 1].png" style="width: 368px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/781826i0DC557B461E134A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-06-09 22_40_41-Autodesk Revit 2020.2 - [Project1 - Section_ Section 1].png" alt="2020-06-09 22_40_41-Autodesk Revit 2020.2 - [Project1 - Section_ Section 1].png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-06-09 22_41_15-Tidhar - Notepad.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/781825i940EB03E2F2DC338/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-06-09 22_41_15-Tidhar - Notepad.png" alt="2020-06-09 22_41_15-Tidhar - Notepad.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-06-09 22_41_53-MyRevitCommands (Running) - Microsoft Visual Studio.png" style="width: 831px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/781824i26A5BCB82C20678C/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-06-09 22_41_53-MyRevitCommands (Running) - Microsoft Visual Studio.png" alt="2020-06-09 22_41_53-MyRevitCommands (Running) - Microsoft Visual Studio.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-06-09 22_46_57-MyRevitCommands - Microsoft Visual Studio.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/781827i7FE943A4623F8A29/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-06-09 22_46_57-MyRevitCommands - Microsoft Visual Studio.png" alt="2020-06-09 22_46_57-MyRevitCommands - Microsoft Visual Studio.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-06-09 22_47_25-MyRevitCommands - Microsoft Visual Studio.png" style="width: 702px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/781828i203CC7063A2C300A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-06-09 22_47_25-MyRevitCommands - Microsoft Visual Studio.png" alt="2020-06-09 22_47_25-MyRevitCommands - Microsoft Visual Studio.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-06-09 22_56_45-MyRevitCommands - Microsoft Visual Studio.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/781832i2208106F0FB7B9B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-06-09 22_56_45-MyRevitCommands - Microsoft Visual Studio.png" alt="2020-06-09 22_56_45-MyRevitCommands - Microsoft Visual Studio.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 19:57:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/debugging-mode-with-visual-studio-breakpoint/m-p/9570367#M33746</guid>
      <dc:creator>amir.aroesti</dc:creator>
      <dc:date>2020-06-09T19:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: debugging mode with visual studio Breakpoint</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/debugging-mode-with-visual-studio-breakpoint/m-p/9570482#M33747</link>
      <description>&lt;P&gt;You are creating a .Net Standard library. Do you require cross platform support or are you not using Windows?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/visualstudio/debugger/troubleshooting-breakpoints?view=vs-2019" target="_blank"&gt;https://docs.microsoft.com/en-us/visualstudio/debugger/troubleshooting-breakpoints?view=vs-2019&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The main suggestions above are to try alternative break point positions or turn off 'Optimise code' on the build tab. I'm not that familiar with .Net Standard so I don't know if there are any specific peculiarities with that which may need to be accounted for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The lesson you mention has a project solution associated with it but that is not what you are using so you are not following lesson 4 as such.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 20:49:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/debugging-mode-with-visual-studio-breakpoint/m-p/9570482#M33747</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2020-06-09T20:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: debugging mode with visual studio Breakpoint</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/debugging-mode-with-visual-studio-breakpoint/m-p/9571077#M33748</link>
      <description>&lt;P&gt;Thank you so much !!!&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1035859"&gt;@RPTHOMAS108&lt;/a&gt;&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;i wasted&amp;nbsp; too much time on that issue!&lt;/P&gt;&lt;P&gt;the things is probably due to the ".Net Standard" . i guess it because this is my first plug in and i missed something on the guide and chose a wrong framework.&lt;/P&gt;&lt;P&gt;i dont know how to fix it up so i start over a new project step by step and finally success!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;due to the so exhausting process i am looking for a better way to go through the code step by step without using the debugging mode because it takes a lot of time to run Revit each time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i thought about maybe "writing" each step in some TXT file due to running the code and if the code will fail i will go through the TXT file looking for the failure point.&lt;/P&gt;&lt;P&gt;how that sound? any other idea?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 06:48:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/debugging-mode-with-visual-studio-breakpoint/m-p/9571077#M33748</guid>
      <dc:creator>amir.aroesti</dc:creator>
      <dc:date>2020-06-10T06:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: debugging mode with visual studio Breakpoint</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/debugging-mode-with-visual-studio-breakpoint/m-p/9571093#M33749</link>
      <description>&lt;P&gt;The easiest way is to use AddinManager. This way you do not have to stop the running instance of Revit, this addin loads the DLL on the go. You just need to re-attach VS to the Revit process after rebuild.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AddinManager is part of Revit SDK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would recommend always using VS to debug, since you can go through the values currently available in the debugged code and see what you can get from the code and what you cannot&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 06:58:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/debugging-mode-with-visual-studio-breakpoint/m-p/9571093#M33749</guid>
      <dc:creator>lukaskohout</dc:creator>
      <dc:date>2020-06-10T06:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: debugging mode with visual studio Breakpoint</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/debugging-mode-with-visual-studio-breakpoint/m-p/9571099#M33750</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/767846"&gt;@lukaskohout&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;of course, usually i use &lt;SPAN&gt;AddinManager but there the code just failed without giving me specific information&amp;nbsp;on where and why.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="jfk-bubble gtx-bubble"&gt;&lt;DIV class="jfk-bubble-content-id"&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="jfk-bubble-closebtn-id jfk-bubble-closebtn"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="jfk-bubble-arrow-id jfk-bubble-arrow jfk-bubble-arrowup"&gt;&lt;DIV class="jfk-bubble-arrowimplbefore"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="jfk-bubble-arrowimplafter"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Jun 2020 07:06:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/debugging-mode-with-visual-studio-breakpoint/m-p/9571099#M33750</guid>
      <dc:creator>amir.aroesti</dc:creator>
      <dc:date>2020-06-10T07:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: debugging mode with visual studio Breakpoint</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/debugging-mode-with-visual-studio-breakpoint/m-p/9571460#M33751</link>
      <description>&lt;P&gt;There are various method for debugging without starting Revit although I have to admit I usually just restart Revit.&amp;nbsp; Debug code stepping is something you do when you believe it works because you have already manually gone through the various code paths i.e. it is a surprise when something doesn't so you step through to understand why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The usual requirement to restart is that the .dll file becomes locked so can't be recompiled. If you load .dll at runtime (Assembly.LoadFrom) from within your main add-in assembly you can create an instance of your IExternalCommandClass&amp;nbsp; (System.Activator.CreateInstance) then run Execute by passing the command data from your main assembly through (the one that becomes locked). I believe this is probably similar to what the Addin manager does. The approach has implication for Extensible storage and other features where the Add-in/Vendor ID is used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 09:53:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/debugging-mode-with-visual-studio-breakpoint/m-p/9571460#M33751</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2020-06-10T09:53:32Z</dc:date>
    </item>
  </channel>
</rss>

