<?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: Visual Studio 2019 - breakpoints not hit in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/9080924#M14143</link>
    <description>&lt;P&gt;Your solution worked for me.&lt;/P&gt;&lt;P&gt;Removed Python from VS2019 Community and everythings working great.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Oct 2019 10:27:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-11T10:27:52Z</dc:date>
    <item>
      <title>Visual Studio 2019 - breakpoints not hit</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/8817099#M14133</link>
      <description>&lt;P&gt;After loading the SpurGear sample in the new VS 2019, a breakpoint set at the 'run' function are no longer effective. The debugger does not stop there. (This involves attaching the VS debugger to the Fusion360 process and setting the breakpoint in the DLL then 'run' the AddIn.) With the same project and reproducing the same steps in VS 2017, the debugger stops at the breakpoint as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any experience in the community at getting this to work?&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 21:22:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/8817099#M14133</guid>
      <dc:creator>ScottFergTMXEZ</dc:creator>
      <dc:date>2019-05-27T21:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio 2019 - breakpoints not hit</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/8820568#M14134</link>
      <description>&lt;P&gt;Fusion has not moved to VS2019 yet so that might be the reason for the behaviour you are seeing.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:18:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/8820568#M14134</guid>
      <dc:creator>goyals</dc:creator>
      <dc:date>2019-05-29T09:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio 2019 - breakpoints not hit</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/8821897#M14135</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4257682"&gt;@ScottFergTMXEZ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;As you can see in the following screen capture, I set a breakpoint in VS 2019 Community Edition at the 'run' function of SpurGear.cpp and there was not any problem. The debugger stopped there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="14.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/642016iA3BE0D505004298B/image-size/large?v=v2&amp;amp;px=999" role="button" title="14.png" alt="14.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Make sure that the project name, output dll name, manifest name and folder name of your add-in are the same (except the extension part).&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 18:17:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/8821897#M14135</guid>
      <dc:creator>nnikbin</dc:creator>
      <dc:date>2019-05-29T18:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio 2019 - breakpoints not hit</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/8822575#M14136</link>
      <description>&lt;P&gt;I appreciate that Fusion does not yet support VS2019. But from the viewpoint of VS, Fusion is just another EXE and a DLL built and debugged by VS should be independent of that. The success that "nnikbin" claims below substantiates that.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 00:33:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/8822575#M14136</guid>
      <dc:creator>ScottFergTMXEZ</dc:creator>
      <dc:date>2019-05-30T00:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio 2019 - breakpoints not hit</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/8822582#M14137</link>
      <description>&lt;P&gt;Thanks for the data point. Knowing it works for you, and assuming we have the same sources and API libraries, suggests there's some global setting in my VS2019 environment (independent of the project/solution) that is causing my problem. I'm still at a loss for how to proceed with isolating the problem, But if I find the answer, I'll post it here.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 00:40:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/8822582#M14137</guid>
      <dc:creator>ScottFergTMXEZ</dc:creator>
      <dc:date>2019-05-30T00:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio 2019 - breakpoints not hit</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/8822883#M14138</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Are you debugging the original SpurGear project or a copy of it? Is the project name, output dll name, manifest name and folder name of your add-in the same? (except the extension part).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 06:43:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/8822883#M14138</guid>
      <dc:creator>nnikbin</dc:creator>
      <dc:date>2019-05-30T06:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio 2019 - breakpoints not hit</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/8824200#M14139</link>
      <description>&lt;P&gt;In reproducing this problem (yet again, N-th iteration) I have copied the SpurGear source (from "CPP\AddInSamples\SpurGear") to a local folder ("H:\SpurGear").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Loaded the project in VS 2017, rebuild, launch Fusion, attach process, set breakpoint, add AddIn at this new folder location, run AddIn, breakpoint reached, shutdown Fusion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Loaded the same project in VS 2019 (ignoring suggestion to update platform and toolset -- yes, I've tried it both ways), rebuild, launch Fusion, attach process, set breakpoint, AddIn already added at same folder location -- verified by AddIn details, run AddIn (run on startup was not set), breakpoint NOT reached. I've even verified using Process Explorer that the DLL is in fact loading from the expected location. And I've changed the "command has been added" msg to verify which version is running. I can then redo the scenario in VS 2017 where it still works. This result should, I believe, alleviate any concerns about naming issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It concerns me that the sample build uses a Post-Build Event to copy the DLL from the Debug directory back up to the main folder. This obviously places it in the location with the manifest and resources, but it is NOT the same full file path name that the VS environment (and debugger) associates with the build product output which has the potential for great confusion. That this ever works is interesting to me and suggests the debugger somehow identifies with the DLL even though its full path name is different. I did try copying the manifest and resources down to the appropriate debug directory where Fusion adds it just fine, but the breakpoint is still not reached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FWIW, to any Autodesk people listening: It's probably best to use the build process to copy the manifest and resources to the build directory than to copy the DLL up. This is a common practice and there are settings in the project to do just this. More complicated projects may have additional build products, other files, dependencies and DLLs and it gets pretty sloppy having to copy these up where they are never 'cleaned'. I know SpurGear is just a sample, but it should reflect best practices.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 18:57:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/8824200#M14139</guid>
      <dc:creator>ScottFergTMXEZ</dc:creator>
      <dc:date>2019-05-30T18:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio 2019 - breakpoints not hit</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/8825055#M14140</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4257682"&gt;@ScottFergTMXEZ&lt;/a&gt;&amp;nbsp;, I went through the steps you mentioned. The breakpoint works. I saved the solution in Visual Studio 2019 (Community Edition) and uploaded the zipped folder (containing all compiled and intermediate files and folders)&amp;nbsp;&lt;A href="https://drive.google.com/file/d/19AkGQwmJ5_DoX4eZjl5WNh_k-c7bmtTz/view?usp=sharing" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. I hope it helps isolate the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(For this version I ignored&amp;nbsp;the suggestion to update platform and toolset. But in both modes the debugger stops at breakpoint).&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 07:35:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/8825055#M14140</guid>
      <dc:creator>nnikbin</dc:creator>
      <dc:date>2019-05-31T07:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio 2019 - breakpoints not hit</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/8826892#M14141</link>
      <description>&lt;P&gt;Thanks! That could prove helpful. I've downloaded the ZIP and will investigate more soon.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jun 2019 04:04:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/8826892#M14141</guid>
      <dc:creator>ScottFergTMXEZ</dc:creator>
      <dc:date>2019-06-01T04:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio 2019 - breakpoints not hit</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/8828211#M14142</link>
      <description>&lt;P&gt;I finally resolved the problem by uninstalling "Python development" from Visual Studio 2019 using Visual Studio Installer &amp;gt; Modify.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can only speculate that, since Fusion 360 supports Python, VS 2019 somehow sensed that and selected the wrong debugger. If this is the problem, perhaps there's some way to force the C++ debugger to be used?! It is odd that debugging works in VS 2017 where I also have Python development installed.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2019 23:30:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/8828211#M14142</guid>
      <dc:creator>ScottFergTMXEZ</dc:creator>
      <dc:date>2019-06-02T23:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio 2019 - breakpoints not hit</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/9080924#M14143</link>
      <description>&lt;P&gt;Your solution worked for me.&lt;/P&gt;&lt;P&gt;Removed Python from VS2019 Community and everythings working great.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 10:27:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/9080924#M14143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-11T10:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio 2019 - breakpoints not hit</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/10323045#M14144</link>
      <description>&lt;P&gt;Csott Ferg, good day! is&amp;nbsp;&lt;SPAN&gt;SpurGear C++ source code available&amp;nbsp;some where? It seems Very interesting to look at.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And I'm exercising the very same problem with debugging as you describe here.&lt;BR /&gt;Does debugging works well for you now? (latest Community VS?)&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/fusion-360-api-and-scripts/how-to-debug-c-code-in-visual-studio-with-break-points-memory/m-p/9509287/highlight/false#M10118" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/fusion-360-api-and-scripts/how-to-debug-c-code-in-visual-studio-with-break-points-memory/m-p/9509287/highlight/false#M10118&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 09:42:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/10323045#M14144</guid>
      <dc:creator>LiveLover</dc:creator>
      <dc:date>2021-05-19T09:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio 2019 - breakpoints not hit</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/10324716#M14145</link>
      <description>&lt;P&gt;The resolution stated above worked for me.&lt;/P&gt;&lt;P&gt;Source for the sample SpurGear is delivered somewhere by Autodesk, either with Fusion360 or as part of the API package. I don't recall which.&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 20:51:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/10324716#M14145</guid>
      <dc:creator>ScottFergTMXEZ</dc:creator>
      <dc:date>2021-05-19T20:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio 2019 - breakpoints not hit</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/10325555#M14146</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1232686"&gt;@LiveLover&lt;/a&gt;&amp;nbsp; a écrit&amp;nbsp;:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;is&amp;nbsp;&lt;SPAN&gt;SpurGear C++ source code available&amp;nbsp;some where? &lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Go to the Fusion 360 install folder and search for the CPP/AddInSamples/SpurGear subfolder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 07:12:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/10325555#M14146</guid>
      <dc:creator>JeromeBriot</dc:creator>
      <dc:date>2021-05-20T07:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio 2019 - breakpoints not hit</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/10325646#M14147</link>
      <description>&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Advisor lia-component-message-view-widget-author-username"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3865419" target="_self"&gt;&lt;SPAN class="login-bold"&gt;JeromeBriot&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;Thank you!!&lt;BR /&gt;Yes&lt;BR /&gt;Shift+S -&amp;gt; SpurGear C++ -&amp;gt;"Edit"&amp;nbsp; and it is where you describe.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 07:57:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/10325646#M14147</guid>
      <dc:creator>LiveLover</dc:creator>
      <dc:date>2021-05-20T07:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio 2019 - breakpoints not hit</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/10338980#M14148</link>
      <description>&lt;P&gt;sometimes when i can't get the c++ breakpoints to play along nicely,&amp;nbsp; i just insert a hard coded breakpoint in the code and then VS will resolve the rest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as&amp;nbsp; long as its launched from a&amp;nbsp; debugger, or a debugger is attached you can remove the check and if JIT is in, you can choose a debugger when it hits the BP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (IsDebuggerPresent()) {&lt;BR /&gt;DebugBreak();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 18:51:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/visual-studio-2019-breakpoints-not-hit/m-p/10338980#M14148</guid>
      <dc:creator>charliex2</dc:creator>
      <dc:date>2021-05-25T18:51:38Z</dc:date>
    </item>
  </channel>
</rss>

