Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transition to debugpy ? #19

Closed
CyrilWaechter opened this issue Oct 10, 2020 · 4 comments
Closed

Transition to debugpy ? #19

CyrilWaechter opened this issue Oct 10, 2020 · 4 comments

Comments

@CyrilWaechter
Copy link

CyrilWaechter commented Oct 10, 2020

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
Copy link
Owner

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
Copy link
Author

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

@tettoffensive
Copy link
Contributor

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

@tettoffensive
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants