microsoft / microsoft/vscode-python-debugger

NumPy array metadata (shape, dtype, ndim)

オープン
#987 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
TypeScript
スター
180
フォーク
126
平均マージ
2日 3時間
マージ済み PR(30日)
3

説明

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:

  1. Open a Python file using NumPy arrays.
  2. Start debugger and pause on a line where arrays exist.
  3. 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:

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、TypeScript デバッガー拡張機能で Variables/Locals を描画するエントリーポイントを特定し、停止中の Python 値がどのように表現されているかを確認します。NumPy の shape、dtype、ndim をどこで公開できるか、またオプション表示がどのように動作すべきかを判断します。完了とは、Data Viewer や watches を必要とせず、停止中に要求されたメタデータが表示されることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
numpy, python, typescript
領域
developer-experience, devtools
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。