Skip to content

Display the type of variables in the "Variables" panel during debugging in a separate column #210258

Closed

Description

As mentioned in the following issue: microsoft/debugpy#931

The type of variables in the "Variables" panel when using the debugger is only shown on mouse hover. So basically the debugpy module already provides the information. When inspecting a series of variables it is quite tedious to hover over every single variable to determine its type. It would be a nice feature to just display it in a separate column or even better using e.g. python type hint syntax: my_var: float = 1.0 or like PyCharm does it.

It took me a while to figure out the problem in my code due to not suspecting differing types for the following two variables:
float vs. npfloat

Activity

  1. added
    feature-request
    on Apr 12, 2024
  2. removed
    feature-request
    on Apr 12, 2024
  3. added
    feature-request
    debug
    on Apr 12, 2024
  4. vscodenpa commented on Apr 12, 2024

    @vscodenpa

    This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  5. r-sargento commented on Apr 22, 2024

    @r-sargento
    Contributor

    I am thinking of working on this feature. Could this be done using a new setting? Or this is suposed to always show the variable type (e.g. delete the hover behavior) ?

  6. tnusser commented on Apr 25, 2024

    @tnusser
    Author

    In my opinion it should be visible at all times and the hover behavior could be deleted. However enabling/disabling it via setting is also completely viable.

  7. r-sargento commented on Apr 25, 2024

    @r-sargento
    Contributor

    ok, I will start working on this

  8. connor4312 commented on May 2, 2024

    @connor4312
    Member

    This is also similar to #146748

  9. vscodenpa commented on Jun 2, 2024

    @vscodenpa

    This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  10. Ditoo29 commented on Jun 5, 2024

    @Ditoo29
    Contributor

    Hey, we've submitted a PR, as you can see above!

  11. vscodenpa commented on Jun 6, 2024

    @vscodenpa

    🙂 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!

  12. connor4312 commented on Jun 25, 2024

    @connor4312
    Member

    Implemented in #214315

  13. added
    verification-needed
    on Jun 25, 2024
  14. added
    verified
    on Jun 25, 2024
  15. locked and limited conversation to collaborators on Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debugfeature-requestverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions