-
Notifications
You must be signed in to change notification settings - Fork 173
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Environment data
- debugpy version: 1.0.0b9
- OS and version: Windows 10
- Python version (& distribution if applicable, e.g. Anaconda): Blender 2.82, Nuke 11, Maya2018
- Using VS Code or Visual Studio: 1.45.0
Actual behavior
Remote debugging works running it in a python environment in a shell. But when run through an application with embedded python interpreter it starts a new instance of this application and it cannot connect.
I think the problem is that sys.executable
is not returning the path to the python interpreter but the path of the application executable itself. And because of this the arguments passed with subprocess are not recognized.
debugpy/src/debugpy/server/api.py
Line 103 in 7a2891b
sys.executable, |
If I replace sys.executable
with the path to the embedded interpreter remote debugging works as expected.
An older version of ptvsd worked out of the box btw: microsoft/ptvsd@0825dbe
dalmago, ghaefele, Felk and DennyWeinberg
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request