<?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 Debug option not working on Windows with Archichad 25 in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Debug-option-not-working-on-Windows-with-Archichad-25/m-p/575249#M8881</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Dear Community,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I'm encountering a problem with debugging in Visual Studio on Windows. Despite setting up everything correctly, the breakpoints are not being hit, and Visual Studio warns that "N&lt;STRONG&gt;o symbols have been loaded for this document.&lt;/STRONG&gt;" We have ensured that symbols are loaded from the system.&lt;BR /&gt;&lt;BR /&gt;Also Enabled tools for debuggung on Windows as mentioned &lt;A href="https://archicadapi.graphisoft.com/tools-for-debugging" target="_blank" rel="noopener"&gt;here.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached are screenshots of the debug output and our configuration for your reference. Any insights or advice on what we might be missing or doing wrong would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Thw warning message on debug mode" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/48859i4AC80F1DABAA494E/image-size/large?v=v2&amp;amp;px=999" role="button" title="debug.PNG" alt="Thw warning message on debug mode" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Thw warning message on debug mode&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Debug configuration" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/48858i3A369336A75EB2D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="options.PNG" alt="Debug configuration" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Debug configuration&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Debug output after attach prossess as Archichad." style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/48857i871616FBA0881FA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="output.PNG" alt="Debug output after attach prossess as Archichad." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Debug output after attach prossess as Archichad.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2024 10:46:07 GMT</pubDate>
    <dc:creator>sijocherian</dc:creator>
    <dc:date>2024-09-17T10:46:07Z</dc:date>
    <item>
      <title>Debug option not working on Windows with Archichad 25</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Debug-option-not-working-on-Windows-with-Archichad-25/m-p/575249#M8881</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Community,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I'm encountering a problem with debugging in Visual Studio on Windows. Despite setting up everything correctly, the breakpoints are not being hit, and Visual Studio warns that "N&lt;STRONG&gt;o symbols have been loaded for this document.&lt;/STRONG&gt;" We have ensured that symbols are loaded from the system.&lt;BR /&gt;&lt;BR /&gt;Also Enabled tools for debuggung on Windows as mentioned &lt;A href="https://archicadapi.graphisoft.com/tools-for-debugging" target="_blank" rel="noopener"&gt;here.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached are screenshots of the debug output and our configuration for your reference. Any insights or advice on what we might be missing or doing wrong would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Thw warning message on debug mode" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/48859i4AC80F1DABAA494E/image-size/large?v=v2&amp;amp;px=999" role="button" title="debug.PNG" alt="Thw warning message on debug mode" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Thw warning message on debug mode&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Debug configuration" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/48858i3A369336A75EB2D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="options.PNG" alt="Debug configuration" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Debug configuration&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Debug output after attach prossess as Archichad." style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/48857i871616FBA0881FA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="output.PNG" alt="Debug output after attach prossess as Archichad." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Debug output after attach prossess as Archichad.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 10:46:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Debug-option-not-working-on-Windows-with-Archichad-25/m-p/575249#M8881</guid>
      <dc:creator>sijocherian</dc:creator>
      <dc:date>2024-09-17T10:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Debug option not working on Windows with Archichad 25</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Debug-option-not-working-on-Windows-with-Archichad-25/m-p/575314#M8884</link>
      <description>&lt;P&gt;FYI :&amp;nbsp; Can't help you with this one BUT -- This has been a continuing problem with some configurations and is also a problem with version 27 and VS 2022. There have been many complaints over the years. On the other hand, Graphisoft just recognized this as a bug with 27 and VS 2022 and logged it for further investigation. So maybe we'll see some resolution&amp;nbsp; in the near future -- or maybe not?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 18:09:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Debug-option-not-working-on-Windows-with-Archichad-25/m-p/575314#M8884</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2023-11-13T18:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Debug option not working on Windows with Archichad 25</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Debug-option-not-working-on-Windows-with-Archichad-25/m-p/575390#M8886</link>
      <description>&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you advise on how to obtain execution logs for ARCHICAD, similar to the way logs are generated when starting ARCHICAD from a terminal on macOS? Also any tips for efficiently capturing these logs would be greatly appreciated, as they are crucial for our development and debugging efforts.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 07:49:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Debug-option-not-working-on-Windows-with-Archichad-25/m-p/575390#M8886</guid>
      <dc:creator>sijocherian</dc:creator>
      <dc:date>2023-11-14T07:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Debug option not working on Windows with Archichad 25</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Debug-option-not-working-on-Windows-with-Archichad-25/m-p/575415#M8887</link>
      <description>&lt;P&gt;I don't have any problems with debugging Add-Ons, this is the way I do it, maybe it will help.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Compile the Add-On.&lt;/LI&gt;
&lt;LI&gt;Load the Add-On in Archicad using Add-On manager. Make sure that you load the compiled Add-On by specifying it via the path of the Debug version of your Add-On.&lt;/LI&gt;
&lt;LI&gt;Set the Add-On project as startup project in Visual Studio, and set your installed Archicad.exe path as the command for debugging.&lt;/LI&gt;
&lt;LI&gt;Hit F5, it will start Archicad, and debugging should work.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ViktorKovacs_0-1699957294496.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/48914i5456DAB88F913E21/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ViktorKovacs_0-1699957294496.png" alt="ViktorKovacs_0-1699957294496.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please note that if the Add-On is not preloaded, the breakpoints will be active only when the Add-On is used, and before that you will see inactive breakpoints.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 10:24:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Debug-option-not-working-on-Windows-with-Archichad-25/m-p/575415#M8887</guid>
      <dc:creator>Viktor Kovacs</dc:creator>
      <dc:date>2023-11-14T10:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Debug option not working on Windows with Archichad 25</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Debug-option-not-working-on-Windows-with-Archichad-25/m-p/577494#M8921</link>
      <description>&lt;P&gt;Make sure the &lt;STRONG&gt;AddOn&lt;/STRONG&gt;&amp;nbsp;project is set as your startup project&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Solution Explorer.jpg" style="width: 388px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/49612iABF90973CA7626B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Solution Explorer.jpg" alt="Solution Explorer.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can change it from the solution properties&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Solution Properties.jpg" style="width: 984px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/49613i0E5AEACCBDCE8FD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Solution Properties.jpg" alt="Solution Properties.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then clean and rebuild the project/solution. Check if a .pdb file has been created in the output directory. And finally follow the steps from the previous post to start debugging.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I noticed in your code you check if height is not zero. This way of comparing two numbers with decimal point is wrong because of their internal representation in the computers. Always use some accuracy when compare. Check for example Element_Test where you can find code like this&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;double len = vx * vx + vy * vy;
if (len &amp;lt; EPS) {
....
}&lt;/LI-CODE&gt;&lt;P&gt;EPS is defined in RealNumber.h&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;static constexpr double	EPS = 1E-05;	/* 0.00001 Machinery zero for general purp. */&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2023 11:03:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Debug-option-not-working-on-Windows-with-Archichad-25/m-p/577494#M8921</guid>
      <dc:creator>kolioi</dc:creator>
      <dc:date>2023-11-26T11:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Debug option not working on Windows with Archichad 25</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Debug-option-not-working-on-Windows-with-Archichad-25/m-p/578451#M8946</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/51834"&gt;@kolioi&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Thanks for the reply. I tried with same setup but the .pdb was not created . Is it beacuse of the version issue?&lt;BR /&gt;This is my build output.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;1&amp;gt;
1&amp;gt;
2&amp;gt;------ Rebuild All started: Project: AddOn, Configuration: Debug x64 ------
2&amp;gt;AddOnMain.cpp
2&amp;gt;ArchiCADElements.cpp
2&amp;gt;DataProcessor.cpp
2&amp;gt;MigrationUtils.cpp
2&amp;gt;SnaptrudeConnector.cpp
2&amp;gt;Utils.cpp
2&amp;gt;Generating Code...
2&amp;gt;ACAP_STATD.lib(ACAPlib_.obj) : warning LNK4099: PDB 'API_c.pdb' was not found with 'ACAP_STATD.lib(ACAPlib_.obj)' or at 'C:\Users\Sijo\Documents\snaptrude\snaptrude-poc\Build\Debug\API_c.pdb'; linking object as if no debug info
2&amp;gt;   Creating library C:/Users/Sijo/Documents/snaptrude/snaptrude-poc/Build/Debug/Test.lib and object C:/Users/Sijo/Documents/snaptrude/snaptrude-poc/Build/Debug/Test.exp
2&amp;gt;AddOn.vcxproj -&amp;gt; C:\Users\Sijo\Documents\snaptrude\snaptrude-poc\Build\Debug\Test.apx
2&amp;gt;Done building project "AddOn.vcxproj".
3&amp;gt;------ Skipped Rebuild All: Project: ALL_BUILD, Configuration: Debug x64 ------
3&amp;gt;Project not selected to build for this solution configuration 
========== Rebuild All: 2 succeeded, 0 failed, 1 skipped ==========
========== Rebuild started at 10:34 and took 12.662 seconds ==========&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As we can see that there is no .pdb file were created. this causes the debugging prossess.&lt;BR /&gt;Any solution for this? Thanks in advance&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 05:10:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Debug-option-not-working-on-Windows-with-Archichad-25/m-p/578451#M8946</guid>
      <dc:creator>sijocherian</dc:creator>
      <dc:date>2023-12-01T05:10:29Z</dc:date>
    </item>
  </channel>
</rss>

