Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displaying the type and shape of an array in the call stack during debugging #165640

Closed
navotoz opened this issue Nov 6, 2022 · 1 comment
Closed
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@navotoz
Copy link

navotoz commented Nov 6, 2022

Hello

During debug, the call stack in PyCharm display the type and shape of an array variable next to its name (e.g., in np.ndarray and torch.Tensor).
Attached is the call stack in VScode and in PyCharm for two np.ndarrays:

VS
CHARM

This feature saves a lot of mouse-work (finding the variable in the call stack, opening it, scrolling to the shape, etc.), especially in N-dimensional arrays that are usually used in optimization tasks (ML, DL, etc.).
For example, in matrix multiplication the elements of the intermediate matrices are usually less interesting than the N-dim shapes of the matrices themselves. which are crucial to for the multiplication operation.

Thanks for all your effort and time on the product, I really enjoy working with it.

@roblourens
Copy link
Member

#146748

@roblourens roblourens added the *duplicate Issue identified as a duplicate of another issue(s) label Nov 7, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants