zhalice2011 / vscode-maya-debugger

VS Code Extension for Autodesk Maya Python Debugging

Home Page:https://marketplace.visualstudio.com/items?itemName=zhalice2011.mayadebugger

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project Introduction

VS Code Extension for Autodesk Maya Python Debugging

Usage

1. Debugging in versions greater than or equal Maya 2022.

1.1 Open Maya and configure the Mel script

commandPort -name "localhost:7001" -sourceType "mel";

1.1

1.2 Start Debugger Listen: Right-click ->"Debug Current Python File in Maya (>=2022)"

1.2

1.3 Launch the vscode debugger

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "python",
            "request": "attach",
            "name": "Maya Python Debugger : Remote Attach",
            "port": 5678,
            "host": "localhost",
            "pathMappings": [
                {
                    "localRoot": "${fileDirname}",
                    "remoteRoot": "${fileDirname}"
                }
            ],
            "MayaDebugFile": "${file}"
        },
    ]
}

1.3

1.4 Start Debugging: Right-click ->"Debug Current Python File in Maya (>=2022)"

1.4

2. Debugging in versions less than or equal to Maya 2011.

2.1 Open Maya and configure the Mel script

commandPort -name "localhost:7001" -sourceType "mel" -echoOutput;

2.1

2.2 Start Debugger Listen: Right-click ->"Debug Current Python File in Maya (<=2021)"

2.2

3.3 Start Debugging: Right-click ->"Debug Current Python File in Maya (<=2021)"

2.3

Video Guide

ow to Debug Maya Python in VS Code

Reference VSCode Plugins

  • mayaCode - A Visual Studio Code extension with support for coding for Maya.
  • MayaPy - A Visual Studio Code extension with Autodesk Maya Python Intellisense and Debugging/

Reference Article


https://gist.github.com/joaen/bdc154ecb3f28d8481b9fb23411d1008

https://zenn.dev/gacha0923/articles/vscode-connect-to-maya_debugpy

https://www.aleksandarkocic.com/2020/12/25/debugging-in-maya-with-debugpy-and-vscode/

https://zhuanlan.zhihu.com/p/615473758

https://namination.co.uk/maya-remote-debugging-with-visual-studio-code/

https://qiita.com/Tack2/items/bf866950dc1f4d6e1c14

About

VS Code Extension for Autodesk Maya Python Debugging

https://marketplace.visualstudio.com/items?itemName=zhalice2011.mayadebugger

License:MIT License


Languages

Language:Python 95.7%Language:Cython 2.1%Language:C++ 1.9%Language:TypeScript 0.1%Language:C 0.1%Language:Batchfile 0.0%Language:Shell 0.0%Language:HTML 0.0%