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

DEBUGPY_ADAPTER_ENDPOINTS being invalid should output an error

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

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

Từ ngày 8/3/2025.

Đánh giá

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

Mô tả

bug needs repro

Before creating a new issue, please check the FAQ to see if your question is answered there.

Environment data

  • debugpy version: 1.8.7
  • OS and version: CentOS 8.5
  • Python version: Python 3.10.15 from conda-forge
  • Using VS Code or Visual Studio: --

Actual behavior

I'm starting debugby from the command line using

$ python -m debugpy --log-to-stderr --listen 127.0.0.1:5799 --wait-for-client -c 'print("hello world!")'

The adapter appears to be started and it reports the port number 5799 but when I want to connect to the port I get ECONNREFUSED in vscode. If I check with netstat the port is not open. If I list the running processes the debugpy adapter is not among them so my guess is that it fails right after opening the port.

When I run the above command with sudo, the adapter is started up correctly and the port can be accessed, the adapter process is listed by ps

Expected behavior

Adapter start up properly in user mode

Steps to reproduce:

I'm no aware of any way to reproduce the error outside my server. I've disample SELinux to make sure ports can be opened by user mode processes to no avail. This is an issue that started happening a few days ago and I'm not aware of any system updates.

Ngôn ngữ chính
Python
Star
2.5k
Fork
208
Merge trung bình
1 ngày 43 phút
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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.