AlansCodeLog / blender-debugger-for-vscode

Blender addon for remote debugging Blender with VS Code (and Visual Studio)
GNU General Public License v3.0
302 stars 36 forks source link

Transition to debugpy ? #19

Closed CyrilWaechter closed 2 years ago

CyrilWaechter commented 3 years ago

OS: Any

Add-on Version: Future

Blender Version: 2.90.1

VS Code Version: 1.49.1

VS Code Python Extension Version: v2020.9.112786

PTVSD Version: 4.3.2

Paths listed by where python or the corresponding command:

Does VS Code / Visual Studio connect to the troubleshooting script? No

Python path/interpreter detected/selected by VS Code/Visual Studio: Yes

Notes:

debugpy apparently replace ptvsd as standard debugging tool. I was using ptvsd before but now fail to attach anything (not related to this addon or Blender. As fallback I currently embed ipython as explained in Tips and Tricks which is not as handy as ptvsd/debugpy). Have you tried to use debugpy instead ? Have you already plan to transition to debugpy ?

(I would happy to help transition with a pull request but I currently fail to attach at all even manually)

AlansCodeLog commented 3 years ago

Didn't know about this (haven't used Blender for addon development in a while), thanks!

Have you tried changing this test script to use debugpy? Close blender just in case and run it with python and try to attach to it with vs code. If you can get it to work, it's fairly easy to transfer the changes needed to the add on.

CyrilWaechter commented 3 years ago

Hi, Sorry for late answer. I have yet not been able to make it work. I’ll try again later.

tettoffensive commented 2 years ago

Was wondering why I couldn't get this setup to work. I'm thinking it's because of this.

tettoffensive commented 2 years ago

I opened a pull request #24 I tested this out and it worked for me