No-config debug uses default system Python on MacOS, not the active Python in terminal
@eleanorjboyd đang làm issue này rồi.
Từ ngày 18/2/2025.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Running VS code on MacOS, for a script go.py:
import sys
print(sys.prefix)
I get the following in a VS code integrated terminal where I have activated a Python 3.12 conda environment:
$ python -V
Python 3.12.8
$ python go.py
/Users/aldcroft/miniconda3-arm/envs/ska3-flight-2025.0rc2
$ debugpy go.py
/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9
If I use the traditional configured debug in VS code, then I get the expected results (Python 3.12.8 from my conda env). I had thought that no-config debug should just work and pick up the current environment in the terminal window.
- Ngôn ngữ chính
- TypeScript
- Star
- 181
- Fork
- 126
- Merge trung bình
- 8 giờ 49 phút
- 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/vscode-python-debugger
-
triage-needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
microsoft/vscode-python-debugger#1110 ·
-
triage-needed
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
microsoft/vscode-python-debugger#1024 · 1 bình luận ·
-
triage-needed
microsoft/vscode-python-debugger#1111 · 1 reaction · 1 người được giao ·
-
triage-needed
microsoft/vscode-python-debugger#1104 · 1 reaction · 1 người được giao ·
-
triage-needed
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 58/100
microsoft/vscode-python-debugger#1095 · 1 bình luận · 1 reaction ·
Tất cả issue của microsoft/vscode-python-debugger
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
bcgov/bc-wallet-mobile#4761 · 1 bình luận ·
-
external-issue to-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
area-deployment area-integrations triage:bot-seen
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 86/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
refactor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100