Skip to content

Debug: hide special variables and function variables #481

Closed

Description

Activity

  1. int19h commented on Nov 24, 2020

    @int19h
    Contributor

    Try doing this in your launch.json:

    "variablePresentation": {
        "function": "hide",
        "special": "hide",
    }
  2. fabioz commented on Nov 27, 2020

    @fabioz
    Collaborator

    Closing as the support to change how that's presented is already in the debugger backend by editing the launch.json.

    You can follow microsoft/vscode-python-debugger#165 for a request to be able to set it in the settings and not only through individual launch configurations.

  3. glitchwizard commented on Dec 23, 2023

    @glitchwizard

    Here's an example of my launch.json that worked for me in VS Code

    {
      "version": "0.2.0",
      "configurations": [
        {
          "name": "Attach debugger",
          "type": "python",
          "request": "attach",
          "pathMappings": [
            {
              "localRoot": "${workspaceFolder}",
              "remoteRoot": "/code"
            }
          ],
          "port": 8001,
          "host": "localhost",
          "variablePresentation": {
            "function": "hide",
            "special": "hide",
          },
        },
      ],
      
    }
  4. Strajk commented on Nov 23, 2025

    @Strajk

    Don't get discouraged by "Property variablePresentation is not allowed." error, it works
    Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions