r/vscode • • 16h ago

See the shape of every Python variable in the VS Code debugger

Post image

I made a small free extension for the Python debugger: the Variables view shows the shape or length in front of every value, so you don't have to evaluate x.shape or len(x) while stepping through code.

Works out of the box with the standard Python Debugger (debugpy) for NumPy, PyTorch, pandas, TensorFlow, JAX and plain lists, dicts, sets and tuples. No settings, nothing patched on disk, and your program's own output stays unchanged.

Marketplace: https://marketplace.visualstudio.com/items?itemName=provaznik.dims

Also on Open VSX for Cursor / Windsurf / VSCodium. Source (MIT): https://github.com/marekprovaznik/dims

Feedback welcome, especially if something doesn't show up right.

2 Upvotes

2 comments sorted by

2

u/bogdanelcs 10h ago

Looks nice. I starred it on github.

1

u/AddictionLord 1h ago

Thank you very much, feedback is appreciated!:)