<?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 in Spyder in Fusion Support Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-support-forum/debugging-in-spyder/m-p/7410874#M192709</link>
    <description>&lt;P&gt;Debugging Python scripts and add-ins using Spyder isn't as easy as we would like it to be but once you figure out the process it's not too bad. &amp;nbsp;I know I had a similar experience to what you're seeing when I first starting using it. &amp;nbsp;Here's are some steps to debugging a script. &amp;nbsp;The steps for debugging an add-in are slightly different.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;Scripts&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;There are two ways to start the debugging process for a script. &amp;nbsp;You can start debugging from the "Scripts and Add-Ins" dialog or from Spyder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;From the "Scripts and Add-Ins" Dialog&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;OL&gt;
&lt;LI&gt;Run the "Scripts and Add-Ins" command.&lt;/LI&gt;
&lt;LI&gt;Choose the script from the list of scripts.&lt;/LI&gt;
&lt;LI&gt;Click the drop-down button beside the "Run" button and choose "Debug".&lt;/LI&gt;
&lt;LI&gt;If Spyder isn't running, it will be started and a break point will be automatically set at the first line in the program and the execution will break at that point.&lt;/LI&gt;
&lt;LI&gt;If Spyder is already running you'll get one of two responses. &amp;nbsp;If you haven't already run the script, Spyder will activate and the program will execute but will stop at a break point at the top of the program, like in step 4. &amp;nbsp;If you've already run or debugged the script from Spyder a dialog like the one shown below will appear. &amp;nbsp;Clicking "Yes" will then start execution with it stopped at the break point at the top of the program. &amp;nbsp;This is likely what's happening to you and you think Fusion 360 has locked up. &amp;nbsp;In reality there's a dialog up waiting for you to respond. &amp;nbsp;It doesn't always pop to the front but I believe if you activate Spyder you'll see it.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="AlreadyRunning.png" style="width: 625px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/405653i01FAB60A2BBA8055/image-size/large?v=v2&amp;amp;px=999" role="button" title="AlreadyRunning.png" alt="AlreadyRunning.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;&lt;FONT size="3"&gt;&lt;STRONG&gt;From Spyder&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;You can also start the debugging process for a script directly from Spyder by using the button I've highlighted below. &amp;nbsp;If you don't see it, you can go to the "View" menu and make sure the "Debug toolbar" is visible.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="PythonDebug.png" style="width: 627px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/405657i441C26025643D0E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="PythonDebug.png" alt="PythonDebug.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will result in the same behavior as previously described in that you might first have the dialog appear that you need to dismiss and then execution will start but will be stopped at a break point on the first line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;Add-Ins&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;To debug an Add-In you always need to start the debugging process from the "Scripts and Add-Ins" dialog and never from within Spyder. &amp;nbsp;You should also stop execution from the "Scripts and Add-Ins" dialog. &amp;nbsp;Besides that, debugging is the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;Debugging&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;To debug an Add-In you always need to start the debugging process from the "Scripts and Add-Ins" dialog and never from with in Spyder. &amp;nbsp;You should also stop execution from the "Scripts and Add-Ins" dialog. &amp;nbsp;Besides that, debugging is the same. &amp;nbsp;You can add break points at any time by selecting a line pressing F12 or by double-clicking in the border of the code window to the left of the code line. &amp;nbsp;Using the other buttons on the debug toolbar you can continue running (until the next break point) or step through line-by-line. &amp;nbsp;it's also useful to use the Console window to check the values of variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hopefully this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2017 19:26:43 GMT</pubDate>
    <dc:creator>ekinsb</dc:creator>
    <dc:date>2017-09-26T19:26:43Z</dc:date>
    <item>
      <title>Debugging in Spyder</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/debugging-in-spyder/m-p/7410745#M192708</link>
      <description>&lt;P&gt;Dear Fusion Community,&lt;BR /&gt;&lt;BR /&gt;I just started using Fusion 360 and I would like to make use of its Python scripting functionality. Unfortunately, the build-in Spyder editor does not let me set break-points. Also, Fusion freezes if I execute a demo script in debugging mode.&lt;BR /&gt;&lt;BR /&gt;Is this a known issue or is there something wrong with my set-up?&lt;BR /&gt;&lt;BR /&gt;Thank you for your support.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 18:43:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/debugging-in-spyder/m-p/7410745#M192708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-26T18:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in Spyder</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/debugging-in-spyder/m-p/7410874#M192709</link>
      <description>&lt;P&gt;Debugging Python scripts and add-ins using Spyder isn't as easy as we would like it to be but once you figure out the process it's not too bad. &amp;nbsp;I know I had a similar experience to what you're seeing when I first starting using it. &amp;nbsp;Here's are some steps to debugging a script. &amp;nbsp;The steps for debugging an add-in are slightly different.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;Scripts&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;There are two ways to start the debugging process for a script. &amp;nbsp;You can start debugging from the "Scripts and Add-Ins" dialog or from Spyder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;From the "Scripts and Add-Ins" Dialog&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;OL&gt;
&lt;LI&gt;Run the "Scripts and Add-Ins" command.&lt;/LI&gt;
&lt;LI&gt;Choose the script from the list of scripts.&lt;/LI&gt;
&lt;LI&gt;Click the drop-down button beside the "Run" button and choose "Debug".&lt;/LI&gt;
&lt;LI&gt;If Spyder isn't running, it will be started and a break point will be automatically set at the first line in the program and the execution will break at that point.&lt;/LI&gt;
&lt;LI&gt;If Spyder is already running you'll get one of two responses. &amp;nbsp;If you haven't already run the script, Spyder will activate and the program will execute but will stop at a break point at the top of the program, like in step 4. &amp;nbsp;If you've already run or debugged the script from Spyder a dialog like the one shown below will appear. &amp;nbsp;Clicking "Yes" will then start execution with it stopped at the break point at the top of the program. &amp;nbsp;This is likely what's happening to you and you think Fusion 360 has locked up. &amp;nbsp;In reality there's a dialog up waiting for you to respond. &amp;nbsp;It doesn't always pop to the front but I believe if you activate Spyder you'll see it.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="AlreadyRunning.png" style="width: 625px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/405653i01FAB60A2BBA8055/image-size/large?v=v2&amp;amp;px=999" role="button" title="AlreadyRunning.png" alt="AlreadyRunning.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;&lt;FONT size="3"&gt;&lt;STRONG&gt;From Spyder&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;You can also start the debugging process for a script directly from Spyder by using the button I've highlighted below. &amp;nbsp;If you don't see it, you can go to the "View" menu and make sure the "Debug toolbar" is visible.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="PythonDebug.png" style="width: 627px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/405657i441C26025643D0E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="PythonDebug.png" alt="PythonDebug.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will result in the same behavior as previously described in that you might first have the dialog appear that you need to dismiss and then execution will start but will be stopped at a break point on the first line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;Add-Ins&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;To debug an Add-In you always need to start the debugging process from the "Scripts and Add-Ins" dialog and never from within Spyder. &amp;nbsp;You should also stop execution from the "Scripts and Add-Ins" dialog. &amp;nbsp;Besides that, debugging is the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;Debugging&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;To debug an Add-In you always need to start the debugging process from the "Scripts and Add-Ins" dialog and never from with in Spyder. &amp;nbsp;You should also stop execution from the "Scripts and Add-Ins" dialog. &amp;nbsp;Besides that, debugging is the same. &amp;nbsp;You can add break points at any time by selecting a line pressing F12 or by double-clicking in the border of the code window to the left of the code line. &amp;nbsp;Using the other buttons on the debug toolbar you can continue running (until the next break point) or step through line-by-line. &amp;nbsp;it's also useful to use the Console window to check the values of variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hopefully this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 19:26:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/debugging-in-spyder/m-p/7410874#M192709</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2017-09-26T19:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in Spyder</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/debugging-in-spyder/m-p/7410981#M192710</link>
      <description>&lt;P&gt;Many thanks for your explanation.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I understand now that for a script Spyder simply breaks at the first line and that one can manually continue from there. I was indeed able to manually step through an entire script in this way. As I also understand it then, the setting of custom break points [using F12 in Spyder] is only supported for Add-ins but not for scripts.&lt;BR /&gt;&lt;BR /&gt;Now that I think there is nothing wrong my installation, I am happy to continue to explore Fusion's scripting features.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 20:00:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/debugging-in-spyder/m-p/7410981#M192710</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-26T20:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in Spyder</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/debugging-in-spyder/m-p/7410987#M192711</link>
      <description>&lt;P&gt;Break points can be manually set for scripts and add-ins. &amp;nbsp;Once you're in the debugging process there's not difference between scripts and add-ins.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 20:02:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/debugging-in-spyder/m-p/7410987#M192711</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2017-09-26T20:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in Spyder</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/debugging-in-spyder/m-p/7411039#M192712</link>
      <description>&lt;P&gt;Unfortunately, that doesn't work for me. Pressing F12, double clicking in the left area before the line number, or via the debug menu dropdown all do not result in adding a breakpoint.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 20:23:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/debugging-in-spyder/m-p/7411039#M192712</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-26T20:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in Spyder</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/debugging-in-spyder/m-p/7411111#M192713</link>
      <description>&lt;P&gt;Here's a Screencast that demonstrates what I'm seeing. &amp;nbsp;You'll see that it's a script and that I'm able to set breakpoints using any one of three methods.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://screencast.autodesk.com/Embed/Timeline/eb69758c-7a97-4d9b-beff-eb42e7c2816e" target="_blank"&gt;https://screencast.autodesk.com/Embed/Timeline/eb69758c-7a97-4d9b-beff-eb42e7c2816e&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 20:48:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/debugging-in-spyder/m-p/7411111#M192713</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2017-09-26T20:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in Spyder</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/debugging-in-spyder/m-p/7899496#M192714</link>
      <description>&lt;P&gt;The "screencast" link is broken.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How does one examine variables in the debugger? &amp;nbsp;I print(ui) and it gives me some output which is less than useful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I dot off of variables and examine the variables members?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to see member variables of an object? &amp;nbsp;Say I don't know what the member variables of UI are, as I didn't write it....can I 'open' the ui variable and see the members inside?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Apr 2018 12:29:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/debugging-in-spyder/m-p/7899496#M192714</guid>
      <dc:creator>eric</dc:creator>
      <dc:date>2018-04-01T12:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in Spyder</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/debugging-in-spyder/m-p/8995652#M192715</link>
      <description>&lt;P&gt;Are the Fusion 360 API dead? I mean nothing has changed in years. The Spyder editor is horrible outdated, and basic functionality like debugging is not working properly.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 15:21:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/debugging-in-spyder/m-p/8995652#M192715</guid>
      <dc:creator>hpekristiansen</dc:creator>
      <dc:date>2019-08-29T15:21:01Z</dc:date>
    </item>
  </channel>
</rss>

