Skip to content

Block unsupported Python versions when debugging #19482

@int19h

Description

@int19h

debugpy doesn't support versions below Python 3.7. However, the diagnostic that it prints out to the console is not reported by VSCode, and thus debugging simply fails with no explanation (see e.g. #19427).

To prevent this, the extension should check Python version number for compatibility before spawning the adapter. To avoid hardcoding the version number, it can be parsed directly from dist-info/METADATA file in the debugpy package; it should contain a line like:

Requires-Python: >=3.7

Metadata

Metadata

Labels

area-debuggingcommunity askFeature request that the community expressed interest infeature-requestRequest for new features or functionalityneeds proposalNeed to make some design decisionsverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions