Skip to content

Problem running debugpy in embedded python interpreter #262

@nicelifeBS

Description

@nicelifeBS

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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions