Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Timed out error while using debugpy in IntegratedTerminal

Đang mở
#1,739 3 bình luận 0 reaction 1 người được giao Xem trên GitHub

@debonte đang làm issue này rồi.

Từ ngày 18/11/2024.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

bug needs repro

I am pretty new to VSCode so sorry in advance if I am not providing enough information.

I am using macOS Sonorama 14.5 using VSCode with:

Version: 1.95.3
Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813
Date: 2024-11-13T14:50:04.152Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Darwin x64 23.5.0

While working with Python 3.13.0 from a virtual environment, if I try to run the following launch.json configuration:

{
"name": "main",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/src/main.py",
"console": "integratedTerminal",
"logToFile": true,
"cwd": "${workspaceFolder}",
"env": {
"PYTHONPATH": "${cwd}"
}
}

I get the following error:
Image

The debubpy extension logs are:

2024-11-17 03:40:49.650 [info] Resolving launch configuration with substituted variables
2024-11-17 03:40:49.656 [info] DAP Server launched with command: /Users/jorgepose/Desktop/Code/LearningPandas/.venv/bin/python /Users/jorgepose/.vscode/extensions/ms-python.debugpy-2024.10.0-darwin-x64/bundled/libs/debugpy/adapter --log-dir /Users/jorgepose/.vscode/extensions/ms-python.debugpy-2024.10.0-darwin-x64
2024-11-17 03:40:50.231 [info] Received 'debugpySockets' event from debugpy.
2024-11-17 03:40:50.237 [info] Received 'debugpySockets' event from debugpy.
2024-11-17 03:40:50.238 [info] Received 'debugpySockets' event from debugpy.

If I change the "console" to "internalConsole" I don't get such error and the code runs fine. I tried using previous versions of both vsCode and debugpy but that didn't work, and doing it while not having any other extension installed also gives the same error. From what I've seen in other issues, in Windows it's already fixed but I don't know if someone else is having this problem with Mac

Ngôn ngữ chính
Python
Star
2.5k
Fork
202
Merge trung bình
5 ngày 1 giờ
Pull request đã merge (30 ngày)
1

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/debugpy

Tất cả issue của microsoft/debugpy

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.