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

"import akshare as ak" blocks the debugger after I upgrade to python 3.12.2

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python, vscode

Hướng nghiên cứu

Bắt đầu với bản tái hiện tối thiểu của run.py chứa import akshare as ak, sử dụng môi trường được báo cáo gồm Python 3.12.2, VS Code 1.88.0 và debugpy v2024.4.0. So sánh Debug với Run Without Debugging và python -m pdb run.py; hoàn tất khi lệnh import không còn chặn trình gỡ lỗi của VS Code.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Environment data

  • debugpy version: v2024.4.0
  • OS and version: Windows 11 Pro 23H2 22631.3374
  • Python version (& distribution if applicable, e.g. Anaconda): 3.12.2(conda 24.3.0)
  • Using VS Code or Visual Studio: VS Code 1.88.0

Actual behavior

import akshare as ak

After I upgrade to python 3.12.2, the above sentence blocks the python debugger(other imports work), and "Run Without Debugging" works. It worked well before.

When I use following command to run python debugger in cmd, it works well

pytyon -m pdb run.py

So I think it's a bug of debugger extension of vscode instead of akshare lib.

And the owner of akshare lib suggested me to use pycharm instead of vscode to get around this issue, it costs a lot for me.

Expected behavior

"import akshare as ak" doesn't block debugger extension of vscode.

Steps to reproduce:

  1. create the following run.py file:
import akshare as ak

if __name__ == "__main__":
    print("it works")
  1. start debug, the process will be blocked. start "Debug Without Debugging", it works.

  2. remove the line: import akshare as ak, everything works well.

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.