Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

No-config debug uses default system Python on MacOS, not the active Python in terminal

Aperta
#605 17 commenti 1 reazione 1 assegnatario Vedi su GitHub

@eleanorjboyd ci sta già lavorando.

Dal 18/2/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

triage-needed

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.

Lingua principale
TypeScript
Stelle
181
Fork
126
Merge medio
8h 49m
PR unite (30g)
1

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/vscode-python-debugger

Tutte le issue di microsoft/vscode-python-debugger

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.