<?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 VS Code and Maya2025 - newbie question in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/vs-code-and-maya2025-newbie-question/m-p/13618860#M17</link>
    <description>&lt;P&gt;Hey Maya community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to coding. In the last years I just created small mel scripts for work but now I'm digging into Python and the OpenMaya API and started to work with VS Code.&lt;BR /&gt;&lt;BR /&gt;After some tries I managed to get autocompletion working in VSC and got it connected to Maya so I can send the code via shortcut to maya and execute it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I &lt;EM&gt;guess &lt;/EM&gt;the&amp;nbsp;&lt;SPAN class=""&gt;&lt;STRONG&gt;MayaPy&lt;/STRONG&gt; Extension from&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;FXTD-Odyssey&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;does this.&lt;BR /&gt;Except there is apparently a bug that it sets some name wrong in the json settings file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You have to replace "python.autoComplete.extraPaths" with "python.analysis.extraPaths", then autocompletion works. This Video and its comments helped to most so far:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.youtube.com/watch?v=sYi1CtKdkow" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=sYi1CtKdkow&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;But how can I now set up some form of debug help? So I can set breakpoints and watch variables in real time?&lt;BR /&gt;I've quite some complex code by now and for now I only debug through a lot of "print this when this happens", I could really use some better tools.&lt;BR /&gt;&lt;BR /&gt;Thank you very much for reading!&lt;BR /&gt;Kind regards,&lt;BR /&gt;Martin&lt;/P&gt;</description>
    <pubDate>Wed, 07 May 2025 18:41:03 GMT</pubDate>
    <dc:creator>m_hutterXDKHC</dc:creator>
    <dc:date>2025-05-07T18:41:03Z</dc:date>
    <item>
      <title>VS Code and Maya2025 - newbie question</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/vs-code-and-maya2025-newbie-question/m-p/13618860#M17</link>
      <description>&lt;P&gt;Hey Maya community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to coding. In the last years I just created small mel scripts for work but now I'm digging into Python and the OpenMaya API and started to work with VS Code.&lt;BR /&gt;&lt;BR /&gt;After some tries I managed to get autocompletion working in VSC and got it connected to Maya so I can send the code via shortcut to maya and execute it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I &lt;EM&gt;guess &lt;/EM&gt;the&amp;nbsp;&lt;SPAN class=""&gt;&lt;STRONG&gt;MayaPy&lt;/STRONG&gt; Extension from&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;FXTD-Odyssey&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;does this.&lt;BR /&gt;Except there is apparently a bug that it sets some name wrong in the json settings file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You have to replace "python.autoComplete.extraPaths" with "python.analysis.extraPaths", then autocompletion works. This Video and its comments helped to most so far:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.youtube.com/watch?v=sYi1CtKdkow" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=sYi1CtKdkow&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;But how can I now set up some form of debug help? So I can set breakpoints and watch variables in real time?&lt;BR /&gt;I've quite some complex code by now and for now I only debug through a lot of "print this when this happens", I could really use some better tools.&lt;BR /&gt;&lt;BR /&gt;Thank you very much for reading!&lt;BR /&gt;Kind regards,&lt;BR /&gt;Martin&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 18:41:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/vs-code-and-maya2025-newbie-question/m-p/13618860#M17</guid>
      <dc:creator>m_hutterXDKHC</dc:creator>
      <dc:date>2025-05-07T18:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: VS Code and Maya2025 - newbie question</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/vs-code-and-maya2025-newbie-question/m-p/13666855#M17986</link>
      <description>&lt;P&gt;I debug script by PyCharm. There is a plugin in PyCharm which can attach to python.It needs run a script like&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;cmds.commandPort(name=":4436")&lt;/LI-CODE&gt;&lt;P&gt;This might help you find solution. You can attach python process by the port in vscode.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 03:26:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/vs-code-and-maya2025-newbie-question/m-p/13666855#M17986</guid>
      <dc:creator>2937160075</dc:creator>
      <dc:date>2025-06-05T03:26:15Z</dc:date>
    </item>
  </channel>
</rss>

