AlansCodeLog / blender-debugger-for-vscode

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

Auto find of debugpy location is not working on Windows 11 #29

Closed rlneumiller closed 1 year ago

rlneumiller commented 1 year ago

OS: Windows 11 Pro 22H2 22621.819

Add-on Version: blender-debugger-for-vscode-master version': (2, 2, 0),

Blender Version: 3.1.1 & 3.5.0 alpha

VS Code Version: 1.73.1

VS Code Python Extension Version: v2022.18.2

Paths listed by where python or the corresponding command: C:\Python311\python.exe C:\Users\\AppData\Local\Microsoft\WindowsApps\python.exe C:\Users\\AppData\Local\Programs\Python\Python310\python.exe Does VS Code / Visual Studio connect to the troubleshooting script?

Python path/interpreter detected/selected by VS Code/Visual Studio: py -0 -V:3.11 * Python 3.11 (64-bit) -V:3.10 Python 3.10 (64-bit)

Notes:

image

Cause: There is carriage return at the end of the str returned by match.group(1) which results in os.path.exists(match+"/debugpy") to return false.

Fix: Remove white space from the end of the result of match.group(1)