<?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 [newbie] how to attach a debugger to ArchiCAD-Addons in Visual Studio 2022? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/newbie-how-to-attach-a-debugger-to-ArchiCAD-Addons-in-Visual/m-p/396462#M1086</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I'm just a newbie in ArchiCAD API programming, I used the addon template and built the example code in API Development Kit. Now, I want to learn how to debug in Visual Studio 2022. Can you help me?&amp;nbsp;If yes, can you show me step by step?&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Aug 2023 03:14:04 GMT</pubDate>
    <dc:creator>Tran Thanh Lo</dc:creator>
    <dc:date>2023-08-29T03:14:04Z</dc:date>
    <item>
      <title>[newbie] how to attach a debugger to ArchiCAD-Addons in Visual Studio 2022?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/newbie-how-to-attach-a-debugger-to-ArchiCAD-Addons-in-Visual/m-p/396462#M1086</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I'm just a newbie in ArchiCAD API programming, I used the addon template and built the example code in API Development Kit. Now, I want to learn how to debug in Visual Studio 2022. Can you help me?&amp;nbsp;If yes, can you show me step by step?&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 03:14:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/newbie-how-to-attach-a-debugger-to-ArchiCAD-Addons-in-Visual/m-p/396462#M1086</guid>
      <dc:creator>Tran Thanh Lo</dc:creator>
      <dc:date>2023-08-29T03:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: [newbie] how to attach a debugger to ArchiCAD-Addons in Visual Studio 2022?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/newbie-how-to-attach-a-debugger-to-ArchiCAD-Addons-in-Visual/m-p/396479#M1087</link>
      <description>&lt;P&gt;1. download and install the visualizer and put them in the folder where the steps tell you:&lt;/P&gt;&lt;P&gt;&lt;A href="https://archicadapi.graphisoft.com/tools-for-debugging" target="_blank"&gt;https://archicadapi.graphisoft.com/tools-for-debugging&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. go to the properties of your project (right click):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoelBuehler_0-1693301429256.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/45061iC5058E6A34FC2F16/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoelBuehler_0-1693301429256.png" alt="JoelBuehler_0-1693301429256.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. define where your archicad.exe sits under "debugging"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoelBuehler_1-1693301511340.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/45062iD64FF14B95FC4C39/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoelBuehler_1-1693301511340.png" alt="JoelBuehler_1-1693301511340.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. start archicad with "start new instance" (again right click on your project)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoelBuehler_2-1693301560195.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/45063iBF4595937B927C21/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoelBuehler_2-1693301560195.png" alt="JoelBuehler_2-1693301560195.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. set your break points where you want and use VS like you waht with the step in etc commands.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoelBuehler_3-1693301649197.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/45064i70F682536F117D92/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoelBuehler_3-1693301649197.png" alt="JoelBuehler_3-1693301649197.png" /&gt;&lt;/span&gt;&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;good luck &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 09:35:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/newbie-how-to-attach-a-debugger-to-ArchiCAD-Addons-in-Visual/m-p/396479#M1087</guid>
      <dc:creator>Joel Buehler</dc:creator>
      <dc:date>2023-08-29T09:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: [newbie] how to attach a debugger to ArchiCAD-Addons in Visual Studio 2022?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/newbie-how-to-attach-a-debugger-to-ArchiCAD-Addons-in-Visual/m-p/396485#M1088</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Joel Buehler,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;but I still can't debug.&amp;nbsp;Can you watch the video and give me some advice?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 10:07:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/newbie-how-to-attach-a-debugger-to-ArchiCAD-Addons-in-Visual/m-p/396485#M1088</guid>
      <dc:creator>Tran Thanh Lo</dc:creator>
      <dc:date>2023-08-29T10:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: [newbie] how to attach a debugger to ArchiCAD-Addons in Visual Studio 2022?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/newbie-how-to-attach-a-debugger-to-ArchiCAD-Addons-in-Visual/m-p/396503#M1089</link>
      <description>&lt;P&gt;im sorry, i never managed to get archicad 25 running in the debug mode, only 26. =( i never found out waht the problem was. do you have a ac26 at hand?&amp;nbsp;&lt;/P&gt;&lt;P&gt;furthermore i dont see any debug information from your plugin in the output window, do they at least work?&amp;nbsp; like ACAPI_WriteReport() or DBPrintf (); they should be shown in the debug window....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and last question, just to be sure: your function "GettAllMorph()" geht called, right? =D (Not a another one that just happens to also show OK11)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 13:37:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/newbie-how-to-attach-a-debugger-to-ArchiCAD-Addons-in-Visual/m-p/396503#M1089</guid>
      <dc:creator>Joel Buehler</dc:creator>
      <dc:date>2023-08-29T13:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: [newbie] how to attach a debugger to ArchiCAD-Addons in Visual Studio 2022?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/newbie-how-to-attach-a-debugger-to-ArchiCAD-Addons-in-Visual/m-p/396621#M1090</link>
      <description>&lt;P&gt;Thank you very much, Joel Buehler&lt;/P&gt;&lt;P&gt;I tried it on ArchiCAD 26 and it worked.&amp;nbsp;Can I ask you one more question?&amp;nbsp;Now I code and debug on ArchiCAD 26, so how can I run the addon on ArchiCAD 25 or another one?&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 07:17:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/newbie-how-to-attach-a-debugger-to-ArchiCAD-Addons-in-Visual/m-p/396621#M1090</guid>
      <dc:creator>Tran Thanh Lo</dc:creator>
      <dc:date>2023-08-30T07:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: [newbie] how to attach a debugger to ArchiCAD-Addons in Visual Studio 2022?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/newbie-how-to-attach-a-debugger-to-ArchiCAD-Addons-in-Visual/m-p/396625#M1091</link>
      <description>&lt;P&gt;im glad it works now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;no, im afraid not: we only have forward compabillity and no backward. =(&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this post explains a lot of the mindset behind graphisofts api compability:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://archicadapi.graphisoft.com/documentation/compatibility" target="_blank"&gt;https://archicadapi.graphisoft.com/documentation/compatibility&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the post they link is also read worthy:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.kde.org/Policies/Binary_Compatibility_Issues_With_C%2B%2B" target="_blank"&gt;https://community.kde.org/Policies/Binary_Compatibility_Issues_With_C%2B%2B&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;waht i would do if i have to etablish backward compability of my plugin:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. finish the plugin in the version 26 since documentation and examples are in the best state in the newest version&lt;/P&gt;
&lt;P&gt;2. when evrything runs fine i would create a new plugin from the template but as a 25 version&lt;/P&gt;
&lt;P&gt;3. transfer all the working code to the 25 version.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. hope i dont have to do to much maintance and new features on both codebases.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;there are a few calls and structs that are different from 25 to 26 and are not directly portable. i encountered only a few and the ones that gave me trouble where in the element region.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but this is more a hack then anything elese... and only works fine if you develop the plugin alone.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the best solution would be to make a library with all the interchangable code. something like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoelBuehler_0-1693382163814.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/45131i988F84F13F0F5658/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoelBuehler_0-1693382163814.png" alt="JoelBuehler_0-1693382163814.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but something like this could get very fast very unnecessary complex just for the sake of a "clean" solution.&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>Wed, 30 Aug 2023 07:57:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/newbie-how-to-attach-a-debugger-to-ArchiCAD-Addons-in-Visual/m-p/396625#M1091</guid>
      <dc:creator>Joel Buehler</dc:creator>
      <dc:date>2023-08-30T07:57:36Z</dc:date>
    </item>
  </channel>
</rss>

