-
Notifications
You must be signed in to change notification settings - Fork 182
Closed
Description
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()Metadata
Metadata
Assignees
Labels
No labels