microsoft / microsoft/vscode-python-debugger
No-config debug uses default system Python on MacOS, not the active Python in terminal
オープン
@eleanorjboyd がすでに取り組んでいます。
2025年2月18日 から。
triage-needed
- 主要言語
- TypeScript
- スター
- 181
- フォーク
- 126
- 平均マージ
- 2日 3時間
- マージ済み PR(30日)
- 3
説明
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。