Skip to content

Crash on start when debug Python 3.14t.rc02 #1953

Description

@Honghe

Environment data

  • debugpy version: 1.8.16
  • OS and version: windows 11
  • Python version: conda-forge python 3.14.rc02 free-threaded
  • Using VS Code or Visual Studio: vscode

Actual behavior

vscode debug crash on start:

>  & 'c:\Users\x\miniforge3\envs\py314t\python.exe' 'c:\Users\x\.vscode\extensions\ms-python.debugpy-2025.10.0-win32-x64\bundled\libs\debugpy\launcher' '63765' '--' 'E:\pythonprojects\uv_py314t\csp.py' 
Traceback (most recent call last):
  File "c:\Users\x\.vscode\extensions\ms-python.debugpy-2025.10.0-win32-x64\bundled\libs\debugpy\_vendored\pydevd\_pydevd_sys_monitoring\_pydevd_sys_monitoring.py", line 876, in _unwind_event
    if not thread_info.trace or not thread_info.is_thread_alive():
  File "c:\Users\x\.vscode\extensions\ms-python.debugpy-2025.10.0-win32-x64\bundled\libs\debugpy\_vendored\pydevd\_pydevd_sys_monitoring\_pydevd_sys_monitoring.py", line 270, in is_thread_alive
    return not self.thread._handle.is_done()
AttributeError: '_MainThread' object has no attribute '_handle'

Expected behavior

It can debug the following code.

Steps to reproduce:

debug the following code:

from concurrent import interpreters

interp = interpreters.create()

def run(q):
    print("before arg")
    print(q.get())

q = interpreters.create_queue()
t = interp.call_in_thread(run, q)
q.put("Hello from the main thread!")
t.join()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions