"import akshare as ak" blocks the debugger after I upgrade to python 3.12.2
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
- Lĩnh vực
- developer-experience, tooling
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:
- create the following run.py file:
import akshare as ak
if __name__ == "__main__":
print("it works")
-
start debug, the process will be blocked. start "Debug Without Debugging", it works.
-
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
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/debugpy
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Document "rules"-option Đang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Adapter bootstrap fails with ConnectionRefusedError on WSL2 VirtioProxy or hostAddressLoopback Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
Tất cả issue của microsoft/debugpy
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
stephrobert/dsoxlab#238 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
sublimehq/package_control#1780 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
nwg-piotr/nwg-displays#145 ·