Skip to content

Create debug adapter in Python #1367

@DonJayamanne

Description

@DonJayamanne

Currently the debug adapter is written in typescript, and in the launch handler we start the python process that's running PTVSD, after this we connect the VSC streams to the python process streams.
From then on the Typescript DA doesn't play any role.

VS Code have some changes in the pipeline that'll make it possible to write the debug adapter in Python. I.e. just before the debug is launched we have the ability to provide the path to the selected (workspace) python interpreter, along with any custom arguments.
https://github.com/Microsoft/vscode/blob/master/src/vs/vscode.proposed.d.ts#L384

However this seems to be in preview (no idea when they'll release this).

Either way, what's good about this is the fact that we can build the debug adapter completely in python (as part of PTVSD).

@brettcannon @ericsnowcurrently @karthiknadig @int19h cc

Metadata

Metadata

Assignees

Labels

area-debuggingdebtCovers everything internal: CI, testing, refactoring of the codebase, etc.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions