Skip to content

Python 3.14 and above broke the debug extension #1893

Open
@hellypi

Description

@hellypi

Environment data

  • Python Debugger extension version 2025.8.0

  • OS and version: Windows 11

  • Python version (& distribution if applicable, e.g. Anaconda): 3.14 (installed using chocolatey)

  • Using VS Code or Visual Studio: vsode stable

Error message:

Traceback (most recent call last):
File "c:\Users\Username.vscode\extensions\ms-python.debugpy-2025.8.0-win32-x64\bundled\libs\debugpy_vendored\pydevd_pydevd_sys_monitoring_pydevd_sys_monitoring.py", line 876, in _unwind_event
File "c:\Users\Username.vscode\extensions\ms-python.debugpy-2025.8.0-win32-x64\bundled\libs\debugpy_vendored\pydevd_pydevd_sys_monitoring_pydevd_sys_monitoring.py", line 270, in is_thread_alive
AttributeError: '_MainThread' object has no attribute '_handle'

I found out the problem was with a recent change done with python because of these two tickets:

python/cpython#132578
python/cpython#132789

Indeed, downgrading to python 3.12.10 has allowed me to run the debugger again.

Metadata

Metadata

Assignees

Labels

Fixed in next releaseThis issue has been fixed, but won't be available to customers until the next release.broken in python betaBroken in the next not GA version of pythonneeds reproIssue has not been reproduced yet

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions