microsoft / microsoft/vscode-python-debugger
NumPy array metadata (shape, dtype, ndim)
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 180
- Forks
- 126
- Ø Merge
- 2 T. 3 Std.
- Gemergte PRs (30 T.)
- 3
Beschreibung
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:
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, den Einstiegspunkt für die Darstellung von Variables/Locals in der TypeScript-Debuggererweiterung zu finden, und prüfe, wie angehaltene Python-Werte dargestellt werden. Ermittle, wo NumPy shape, dtype und ndim angezeigt werden könnten und wie eine optionale Anzeige funktionieren sollte; als erledigt gilt die Aufgabe, wenn die angeforderten Metadaten im angehaltenen Zustand sichtbar sind, ohne dass Data Viewer oder Watches erforderlich sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- numpy, python, typescript
- Bereich
- developer-experience, devtools
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100