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

"variablePresentation" isn't hiding special and function variables #961

Closed
int19h opened this issue Jun 22, 2022 · 7 comments
Closed

"variablePresentation" isn't hiding special and function variables #961

int19h opened this issue Jun 22, 2022 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@int19h
Copy link
Contributor

int19h commented Jun 22, 2022

The variablePresentation setting only seems to hide some of the special variables and function variables. Is there any way to hide all of them?

image

Originally posted by @JeremyDalby in #258 (comment)

@int19h int19h added the bug Something isn't working label Jun 22, 2022
@fabioz
Copy link
Collaborator

fabioz commented Jun 23, 2022

The problem in the example is that:

      "variablePresentation": {
        "all": "hide",
        "protected": "inline"
      }

needs to be added inside the Hockey Team Script python launch (the example shows it added as a separate item which is not supported).

Maybe the idea was using it as a template? (if that's the case, this is already reported at: microsoft/vscode-python-debugger#165).

Note that variablePresentation will appear underlined with yellow because it's not declared in package.json in vscode-python (but debugpy should understand it anyways).

@fabioz fabioz closed this as completed Jun 23, 2022
@JeremyDalby
Copy link

JeremyDalby commented Jun 23, 2022

Thank you! Works exactly how I was wanting it to. The yellow underline led me to believe it had to be outside the launch configuration.

image

@ydmykr
Copy link

ydmykr commented Mar 27, 2023

@fabioz Hi, I have the similar request. What means Hockey Team Script python launch? How can I find this setting.

@JeremyDalby
Copy link

A "python launch" is a configuration used to launch (i.e., run) a Python script using the debugger in VS Code. These configurations are defined in a file named launch.json. You can read more about them here: https://code.visualstudio.com/docs/python/debugging

In the screenshots shown above, I just happened to be using a Python launch configuration that I named "Hockey Team Script" because it described the script I was trying to debug, but each launch configuration can be named anything you want and the name is not relevant this thread.

@ydmykr
Copy link

ydmykr commented Mar 28, 2023

@JeremyDalby Thank you for your response, should my launch.json be set like the one in your picture? There does exist the yellow line.

@JeremyDalby
Copy link

The image I posted on June 23, 2022 shows a working launch configuration, so yes, you could set yours like that, but I assume your script has nothing to do with a hockey team, so there will at least be some different values for the "name" and "program" values.

As @fabioz explains above, "variablePresentation will appear underlined with yellow because it's not declared in package.json in vscode-python (but debugpy should understand it anyways)", so I believe you can just ignore the yellow line.

@ydmykr
Copy link

ydmykr commented Mar 30, 2023

@JeremyDalby Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants