Skip to content

Setting to hide "Special Variables" #1804

Description

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.

Activity

  1. rchiodo commented on Jan 10, 2025

    @rchiodo
    Contributor

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

  2. rchiodo commented on Jan 10, 2025

    @rchiodo
    Contributor

    Turning into a discussion item for up votes.

  3. locked and limited conversation to collaborators on Jan 10, 2025
  4. converted this issue into a discussion #1805 on Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

needs reproIssue has not been reproduced yet

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions