Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Setting to hide "Special Variables" #1804

Closed
mgreiner79 opened this issue Jan 10, 2025 · 2 comments
Closed

Setting to hide "Special Variables" #1804

mgreiner79 opened this issue Jan 10, 2025 · 2 comments
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@mgreiner79
Copy link

mgreiner79 commented Jan 10, 2025

In the debug variables panel, one can see "special variables", "function variables" and "class variables". The special variables are very often not needed for debugging, and just clutter the panel. For example, every class I write myself, will automatically have special variables like __class__, __delattr__, __dict__, etc.. In fact the most basic python class has some 28 special variables that do not belong to the code I am writing. Similar to how "justMyCode" does not setting allows one to avoide stepping into code that the user cannot control, it would be nice to have a setting that hides the variables the the user cannot control. Yeah, sure sometimes the special variables are important to look into for debugging, but I find more often than not, they just create a lt of clutter, which is why I think it should be a setting one can turn on and off.
The Spyder IDE has something similar, where one can show/hide certin vairbal patterns, like thos in all-caps, or those starting and ending with "__", and it is quite handy and user friendly.

@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Jan 10, 2025
@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Jan 10, 2025
@rchiodo
Copy link
Contributor

rchiodo commented Jan 10, 2025

Pylance wouldn't be the one to control this. Transferring to debugpy.

@rchiodo rchiodo transferred this issue from microsoft/pylance-release Jan 10, 2025
@rchiodo
Copy link
Contributor

rchiodo commented Jan 10, 2025

Turning into a discussion item for up votes.

@microsoft microsoft locked and limited conversation to collaborators Jan 10, 2025
@rchiodo rchiodo converted this issue into discussion #1805 Jan 10, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

4 participants