Skip to content

Could we provide more details of the variable when debug like the PyCharm does? #146748

Closed

Description

@gonghenghai

InkedCapture_LI
InkedCapture2_LI

I know, we can get more details through clicking the arrow to get into the variable or through some expression in the WATCH panel. But it will be better to act as the PyCharm does.

Activity

  1. added
    feature-request
    on Jan 14, 2022
  2. karthiknadig commented on Jan 14, 2022

    @karthiknadig
    Member

    Related microsoft/vscode-python-debugger#167, this is for the content shown in the code itself.

    For the additional information in the variable view it should come from the debugger.
    /cc Fabio Zadrozny (@fabioz), Pavel Minaev (@int19h)

  3. karthiknadig commented on Jan 14, 2022

    @karthiknadig
    Member

    Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.

  4. rgimenes26 commented on Feb 2, 2022

    @rgimenes26

    InkedCapture_LI InkedCapture2_LI

    I know, we can get more details through clicking the arrow to get into the variable or through some expression in the WATCH panel. But it will be better to act as the PyCharm does.

    I agree that there is a lot to improve there. Not only showing the variables views when debugging but when running a python integrated terminal too. Like when we run a Jupyter Notebook. Not only PyCharm but R Studio's Python development do this very wheel. Not only displaying the variables but also when working with Pandas DataFrames (Sorting, Filtering, Page.ing )

  5. ghuname commented on Feb 10, 2022

    @ghuname

    In pycharm even position of the debug window is better. It is on the bottom with more width. In vscode we are stuck, can't move it anywhere.

    For example compare these two pictures:

    image

    and

    image

    What do you think which is better?
    Furthermore, how to remove function variables, class variables, Optional, jwt, status from vscode?
    Pycharm is not showing them and I have never missed them.

    In vscode, there is also a problem with showing dataframes.
    You can open it in window that you cannot maximize iz order to take the full screen which is very convenient when you have a lot of rows/columns which is normal in data science world.

  6. BlueGlassBlock commented on Feb 14, 2022

    @BlueGlassBlock

    It would be nice if sections like class variables and function variables can be removed.

    Instead, place dynamically created functions and classes in the data frame please.

    Because sometimes I really need to inspect lots of dynamic functions and classes.

  7. fabioz commented on Feb 14, 2022

    @fabioz
    Contributor

    It would be nice if sections like class variables and function variables can be removed.

    Nyuan Zhang (@BlueGlassBlock) as a note, this is already configurable in your launch.json (see: microsoft/debugpy#481)

  8. fabioz commented on Feb 14, 2022

    @fabioz
    Contributor

    In pycharm even position of the debug window is better. It is on the bottom with more width. In vscode we are stuck, can't move it anywhere.

    ghuname that's not entirely true, you can drag your variables elsewhere:

    image

  9. ghuname commented on Feb 14, 2022

    @ghuname

    Fabio Zadrozny (@fabioz) I didn't know that. You are right. It is much better if variables are near terminal region. Sorry for wrong statement.

  10. ghuname commented on Feb 14, 2022

    @ghuname

    It would be nice if sections like class variables and function variables can be removed.

    Nyuan Zhang (@BlueGlassBlock) as a note, this is already configurable in your launch.json (see: microsoft/debugpy#481)

    Fabio Zadrozny (@fabioz) How do you comment this picture?

    image

  11. rgimenes26 commented on Feb 14, 2022

    @rgimenes26

    RStudio python IDLE dataframe viewer. Just type:
    view(df) in the terminal

    image

    Actually any variable you can click in the table if you think it's usefull.
    image

    It you open in a new tab. Like this function "f".
    image

    I prefer the vscode tree like view, like a dictionary, because its better organized, but the dataframe viewer its very good.
    And remember this is all working without the debug mode. just the python terminal, this is the real improvement to do in vscode.

    This and run code in multiples python iterative terminals like in microsoft/vscode-python#18315 .

  12. BlueGlassBlock commented on Feb 15, 2022

    @BlueGlassBlock

    It would be nice if sections like class variables and function variables can be removed.

    Nyuan Zhang (@BlueGlassBlock) as a note, this is already configurable in your launch.json (see: microsoft/debugpy#481)

    That worked for me as I configured it to inline, thanks! It's not presented in the auto suggestion so I missed it.

    Well, I actually want the ability to search through the data frame, or something like MyVarsOnly button to display vars, functions and classes only from "my code".

  13. ghuname commented on Feb 15, 2022

    @ghuname

    It would be nice if sections like class variables and function variables can be removed.

    Nyuan Zhang (@BlueGlassBlock) as a note, this is already configurable in your launch.json (see: microsoft/debugpy#481)

    That worked for me as I configured it to inline, thanks! It's not presented in the auto suggestion so I missed it.

    Nyuan Zhang (@BlueGlassBlock) can you please provide the launch.json with "inline" that prevents showing class and function variables.
    At least we should be able to have kind of toggle for that.

  14. BlueGlassBlock commented on Feb 16, 2022

    @BlueGlassBlock

    It would be nice if sections like class variables and function variables can be removed.

    Nyuan Zhang (@BlueGlassBlock) as a note, this is already configurable in your launch.json (see: microsoft/debugpy#481)

    That worked for me as I configured it to inline, thanks! It's not presented in the auto suggestion so I missed it.

    Nyuan Zhang (@BlueGlassBlock) can you please provide the launch.json with "inline" that prevents showing class and function variables. At least we should be able to have kind of toggle for that.

    Well, what I want to do is show all the class and function variables, not hiding them. Because I mainly use it when I need to tweak dynamically created classes and functions, etc. And inline did that pretty well.

  15. brettcannon commented on Mar 31, 2022

    @brettcannon
    Member

    Thank you to everyone who upvoted this issue! Since the community showed interest in this feature request we will leave this issue open as something to consider implementing at some point in the future.

    We do encourage people to continue 👍 the first/opening comment as it helps us prioritize our work based on what the community seems to want the most.

  16. 9 remaining items

  17. vscode-triage-bot commented on May 7, 2022

    @vscode-triage-bot

    🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  18. Ashark commented on Jul 10, 2022

    @Ashark

    In pycharm even position of the debug window is better. It is on the bottom with more width. In vscode we are stuck, can't move it anywhere.

    ghuname that's not entirely true, you can drag your variables elsewhere:

    image

    Advise fot those who use wayland: such drag does not work currently. To drag that panel I restarted vscodium without --enable-features=UseOzonePlatform --ozone-platform=wayland , and then I could drag that.

  19. weinand commented on Oct 19, 2022

    @weinand
    Contributor

    Suggestion form Pavel Minaev (@int19h):
    VS Code setting to display the type in the Variables pane

  20. lyjdwh commented on Dec 7, 2022

    @lyjdwh

    Is there a way to customize the order of variables? If so we can put the shape and type on the top of the list!

  21. PengjuYan commented on Apr 3, 2024

    @PengjuYan

    Any progress on this issue? When I talked about this problem, people around me say "vscode is great, and PyCharm is much better". LOL

    Really looking forward to solve it before people turn away.

  22. connor4312 commented on Jul 24, 2024

    @connor4312
    Member

    Missed this feature duplication, this was implemented in #214315 and can be turned on via the debug.showVariableTypes setting.

    I realize we also forgot to mention that on last month's release notes, I'll get it on the ones for this month so people are aware :)

  23. added
    *duplicate
    on Jul 24, 2024
  24. thorinf-orca commented on Jul 29, 2024

    @thorinf-orca

    Missed this feature duplication, this was implemented in #214315 and can be turned on via the debug.showVariableTypes setting.

    I realize we also forgot to mention that on last month's release notes, I'll get it on the ones for this month so people are aware :)

    Is there any option for shapes too?

  25. pdima commented on Aug 17, 2024

    @pdima

    In my opinion, shapes are much more useful to display for numpy arrays, torch tensors etc. To a lesser extent - dtypes. Next - to be able to visualise the data.

  26. locked and limited conversation to collaborators on Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

*duplicatedebugfeature-request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions