microsoft / microsoft/vscode-python-debugger
NumPy array metadata (shape, dtype, ndim)
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 180
- Fork
- 126
- Merge medio
- 2g 3h
- PR unite (30g)
- 3
Descrizione
Type: Feature Request
Hello VS Code team,
Feature request: please add an option to show NumPy array metadata (shape, dtype, ndim) directly in the Variables/Locals view when debugging Python. Current workarounds (Data Viewer, Watch, Debug Console) are helpful but a compact shape/dtype column would greatly speed up debugging numeric code.
Use case:
- Quickly inspect array shapes/dtypes (e.g.,
frame.shape,frame.dtype) while paused at breakpoints without opening the Data Viewer or adding watches. - Helpful for image-processing / ML workflows where many arrays are inspected frequently.
Suggested design:
- Add optional compact badges or columns in Variables:
name | type | shape | dtype | value-preview. - Or provide a toggle
Python: Show Array Shape/DType in Variables.
Repro steps:
- Open a Python file using NumPy arrays.
- Start debugger and pause on a line where arrays exist.
- Observe Variables view — shape/dtype not visible by default.
Environment:
- VS Code version: 1.109.4
- Python extension: 2026.2.0
- OS: linux
Thanks for considering.
Regards,
Uri ZACKHEM urizackhem@gmail.com
VS Code version: Code 1.109.4 (c3a26841a84f20dfe0850d0a5a9bd01da4f003ea, 2026-02-16T15:35:57.932Z)
OS version: Linux x64 6.17.0-14-generic snap
Modes:
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia individuando il punto di ingresso per il rendering di Variables/Locals nell’estensione di debug TypeScript e verificando come vengono rappresentati i valori Python in pausa. Determina dove potrebbero essere esposti shape, dtype e ndim di NumPy e come dovrebbe comportarsi una visualizzazione opzionale; il lavoro è completato quando i metadati richiesti sono visibili mentre l’esecuzione è in pausa senza richiedere Data Viewer o watches.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- numpy, python, typescript
- Ambito
- developer-experience, devtools
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 30/100