<?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 .Net 8 in VS22 (How to Step Into the Code) in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/debugging-net-8-in-vs22-how-to-step-into-the-code/m-p/13143527#M3077</link>
    <description>&lt;P&gt;Ah, I see. It seems it is AutoCAD's InfoCenter is trying to collect some data that is related to Advanced Steel that causes issues, because InfoCenter does work OK with my Acad2025/C3D2025 on multiple computer when Visul Studio debugs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may or may not be a bug of Advanced Steel on Autodesk side, but since we, as programmers, could not be careless more about Info center while writing code, you might want to try to disable Info Center to see if the issue goes away. Here is what I got by searching "AutoCAD disable infocenter":&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="normanyuan_0-1731336471072.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1432429i88375E0CFB9BC2C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="normanyuan_0-1731336471072.png" alt="normanyuan_0-1731336471072.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Nov 2024 14:48:23 GMT</pubDate>
    <dc:creator>norman.yuan</dc:creator>
    <dc:date>2024-11-11T14:48:23Z</dc:date>
    <item>
      <title>Debugging .Net 8 in VS22 (How to Step Into the Code)</title>
      <link>https://forums.autodesk.com/t5/net-forum/debugging-net-8-in-vs22-how-to-step-into-the-code/m-p/12940951#M3068</link>
      <description>&lt;P&gt;I am having problems understanding how to debug (step into) my library project (.dll) now that I have switch to .Net 8.&lt;BR /&gt;&lt;BR /&gt;I have tried updating the launchSettings.json file and it doesn't work for me.&lt;BR /&gt;&lt;BR /&gt;Can someone please explain how we do this now that we have switched to .Net 8?&lt;BR /&gt;&lt;BR /&gt;I need to be able to step through my code and I am really hoping someone has the answer.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 23:16:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/debugging-net-8-in-vs22-how-to-step-into-the-code/m-p/12940951#M3068</guid>
      <dc:creator>Scott_FergusonPVMNH</dc:creator>
      <dc:date>2024-08-05T23:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging .Net 8 in VS22 (How to Step Into the Code)</title>
      <link>https://forums.autodesk.com/t5/net-forum/debugging-net-8-in-vs22-how-to-step-into-the-code/m-p/12941052#M3069</link>
      <description>&lt;P&gt;I found this guide and it answered my question of how to set up the executable path.&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/net/migration-guide-net-framework-to-autocad-2025-net-8-0/td-p/12676274" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/net/migration-guide-net-framework-to-autocad-2025-net-8-0/td-p/12676274&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;FYI&lt;/STRONG&gt; VS22 &lt;EM&gt;would not&lt;/EM&gt; try to use the acad.exe executable when I clicked the Run arrow &lt;STRONG&gt;until&lt;/STRONG&gt; I put something in the &lt;EM&gt;command line arguments&lt;/EM&gt; window: e.g.&lt;STRONG&gt;&amp;nbsp;/product ACAD /language "en-US"&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 01:18:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/debugging-net-8-in-vs22-how-to-step-into-the-code/m-p/12941052#M3069</guid>
      <dc:creator>Scott_FergusonPVMNH</dc:creator>
      <dc:date>2024-08-06T01:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging .Net 8 in VS22 (How to Step Into the Code)</title>
      <link>https://forums.autodesk.com/t5/net-forum/debugging-net-8-in-vs22-how-to-step-into-the-code/m-p/12941065#M3070</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I believe that post thread should be pinned to the top of the forum listing.&lt;/P&gt;&lt;P&gt;It&amp;nbsp; would sure save a lot of repeat posts &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again to Gilles&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&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, 06 Aug 2024 01:03:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/debugging-net-8-in-vs22-how-to-step-into-the-code/m-p/12941065#M3070</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2024-08-06T01:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging .Net 8 in VS22 (How to Step Into the Code)</title>
      <link>https://forums.autodesk.com/t5/net-forum/debugging-net-8-in-vs22-how-to-step-into-the-code/m-p/12941088#M3071</link>
      <description>Yes I agree it should be pinned to the top! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Searching in the forums for the solution returned no hits at all.</description>
      <pubDate>Tue, 06 Aug 2024 01:19:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/debugging-net-8-in-vs22-how-to-step-into-the-code/m-p/12941088#M3071</guid>
      <dc:creator>Scott_FergusonPVMNH</dc:creator>
      <dc:date>2024-08-06T01:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging .Net 8 in VS22 (How to Step Into the Code)</title>
      <link>https://forums.autodesk.com/t5/net-forum/debugging-net-8-in-vs22-how-to-step-into-the-code/m-p/12941094#M3072</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13836832"&gt;@Scott_FergusonPVMNH&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I add a TestCommands class to my Library.&lt;/P&gt;&lt;P&gt;I add a breakpoint to the line in the Test CommandMethod I want to use.&lt;BR /&gt;Call the Test Method from the CommandLine after the Assembly is Netloaded.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;From there just Step Into (F11) the highlighted line.&lt;/P&gt;&lt;P&gt;Make sure that Hot Reloading is enabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I exclude the TestCommands class from the 'published' build&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 01:23:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/debugging-net-8-in-vs22-how-to-step-into-the-code/m-p/12941094#M3072</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2024-08-06T01:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging .Net 8 in VS22 (How to Step Into the Code)</title>
      <link>https://forums.autodesk.com/t5/net-forum/debugging-net-8-in-vs22-how-to-step-into-the-code/m-p/12941114#M3073</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13836832"&gt;@Scott_FergusonPVMNH&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;FYI&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;VS22&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;would not&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;try to use the acad.exe executable when I clicked the Run arrow&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;until&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;I put something in the&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;command line arguments&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;window: e.g.&lt;/SPAN&gt;&lt;STRONG&gt;&amp;nbsp;/product ACAD /language "en-US"&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Re your revised response :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For &lt;EM&gt;launchSettings.json&lt;/EM&gt; I use a variation of&amp;nbsp; :&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;{
  "profiles": {
    "KdubServices.Acad.Common": {
      "commandName": "Executable",
      "executablePath": "C:\\Program Files\\Autodesk\\AutoCAD 2025\\acad.exe",
      "commandLineArgs": "/nologo /b \"start.scr\""
    }
  }
}&lt;/LI-CODE&gt;&lt;P&gt;. . . with the start.scr netloading the Assembly.&lt;/P&gt;&lt;P&gt;. . . and I leave the working directory as the default assembly .dll location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 01:47:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/debugging-net-8-in-vs22-how-to-step-into-the-code/m-p/12941114#M3073</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2024-08-06T01:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging .Net 8 in VS22 (How to Step Into the Code)</title>
      <link>https://forums.autodesk.com/t5/net-forum/debugging-net-8-in-vs22-how-to-step-into-the-code/m-p/13142888#M3074</link>
      <description>&lt;P&gt;Though I can debug the .net8-Plugins in Acad2025 (AdvanceSteel 2025 - to be accurate), I face a new issue, have no idea where it comes from:&lt;/P&gt;&lt;P&gt;On starting the debugger, all the Exceptions in the CLR-Environments get caught, thrown by Autocad-Libs...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grimacing_face:"&gt;😬&lt;/span&gt;&lt;/P&gt;&lt;P&gt;this makes debugging to a horror...&lt;/P&gt;&lt;P&gt;Couldn't figure out, how to suppress those. Any ideas?&lt;/P&gt;&lt;P&gt;Thanks in Advance!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: No issues debugging ADVS 2024 + .net Framework 4.8&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 08:43:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/debugging-net-8-in-vs22-how-to-step-into-the-code/m-p/13142888#M3074</guid>
      <dc:creator>dba78</dc:creator>
      <dc:date>2024-11-11T08:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging .Net 8 in VS22 (How to Step Into the Code)</title>
      <link>https://forums.autodesk.com/t5/net-forum/debugging-net-8-in-vs22-how-to-step-into-the-code/m-p/13143272#M3075</link>
      <description>&lt;P&gt;The first picture shows clearly that your code is wrong: The last line should be boo.l.Parse(...):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;public static bool Parse(string value)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; ArgumentNullException.ThrowIfNull(value);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;return bool.Parse(value);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OTH, without seeing your all code, I do not see why you need this extension method. You simply can directly call bool.Parse() anywhere you want to use this extension method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the second picture, again, not seeing all relevant code, or knowing what your are doing, I do not want to guess, other than saying it is very likely your code is wrong and you should fix the code other than looking a way to "suppress" VS showing exception.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 12:47:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/debugging-net-8-in-vs22-how-to-step-into-the-code/m-p/13143272#M3075</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2024-11-11T12:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging .Net 8 in VS22 (How to Step Into the Code)</title>
      <link>https://forums.autodesk.com/t5/net-forum/debugging-net-8-in-vs22-how-to-step-into-the-code/m-p/13143285#M3076</link>
      <description>&lt;P&gt;This is exactly my point, this isn't my code, as you can see in the second picture.&lt;/P&gt;&lt;P&gt;It seems to be a call to System.Private.CoreLib.dll by AdWindows.dll.&lt;/P&gt;&lt;P&gt;The exception throws as soon as I start debugging on acad-init..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there are bunch of others too....&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 12:57:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/debugging-net-8-in-vs22-how-to-step-into-the-code/m-p/13143285#M3076</guid>
      <dc:creator>dba78</dc:creator>
      <dc:date>2024-11-11T12:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging .Net 8 in VS22 (How to Step Into the Code)</title>
      <link>https://forums.autodesk.com/t5/net-forum/debugging-net-8-in-vs22-how-to-step-into-the-code/m-p/13143527#M3077</link>
      <description>&lt;P&gt;Ah, I see. It seems it is AutoCAD's InfoCenter is trying to collect some data that is related to Advanced Steel that causes issues, because InfoCenter does work OK with my Acad2025/C3D2025 on multiple computer when Visul Studio debugs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may or may not be a bug of Advanced Steel on Autodesk side, but since we, as programmers, could not be careless more about Info center while writing code, you might want to try to disable Info Center to see if the issue goes away. Here is what I got by searching "AutoCAD disable infocenter":&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="normanyuan_0-1731336471072.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1432429i88375E0CFB9BC2C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="normanyuan_0-1731336471072.png" alt="normanyuan_0-1731336471072.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 14:48:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/debugging-net-8-in-vs22-how-to-step-into-the-code/m-p/13143527#M3077</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2024-11-11T14:48:23Z</dc:date>
    </item>
  </channel>
</rss>

