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

Breakpoints in non-stdlib modules named `io.py` are always skipped

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

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

Từ ngày 4/4/2025.

Đánh giá

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

Mô tả

bug needs repro

Any breakpoint within a non-stdlib module named io.py will always be skipped.

e.g. consider the python package:

.
├── mypackage
│   ├── __init__.py
│   ├── io.py
│   └── main.py
└── pyproject.toml
# mypackage/io.py

def foo():
    return "hello from mypackage.io.foo"
# mypackage/main.py

from mypackage.io import foo


def main():
    return foo()


if __name__ == "__main__":
    main()

If you add a breakpoint inside mypackage.io.foo it will always be skipped, and you cannot step into that module.

Renaming the module to anything else fixes the issue.

PDB honour's breakpoints in that module (i.e. add breakpoint() in mypackage.io.foo and running python -m mypackage.main)

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.