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

Watch variable window not wrapping lines #177733

Open
romanchyla opened this issue Mar 20, 2023 · 5 comments
Open

Watch variable window not wrapping lines #177733

romanchyla opened this issue Mar 20, 2023 · 5 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Milestone

Comments

@romanchyla
Copy link

romanchyla commented Mar 20, 2023

Variable view cannot wrap lines - especially for string, the most information is at the very end of the value -- effectively hidden.

  • Variables view serves very important role for interactive debugging.
  • The debugger allows us to pause machine execution and explore the current stack - literally "explore the land".

For efficient exploration, that information needs to easily accessible (i.e. visible) - IDEs traditionally are doing good job there.

It would be actually awesome to make this part of VSCode even smarter -- but having lines wrapped (witth some configurable max). But even simpler logic, such as displaying the rightmost end of the value i.e. ../.backup/.classpath/.factoryPath.replaced.20210321 instead of /home/some/location/... -- would be an improvement.


Workarounds that were proposed:

  1. hover over the variable with mouse
  2. move the variable view to the bottom

Outcomes (for some of us):

  1. is too slow and flow disrupting - if you have been touch typing, then you know what it means to use all ten fingers compared to folks who need to look at a keyboard, grab mouse, move cursor...
  2. is only a workaround - some important things are in that space, for example terminal, suggesting that one moves variables there because VSCode is unable to wrap a line is also somewhat arbitrary (does function follow form or form follows the function?)

Similar issues have been opened in 2019, then in 2022 - for their history, please see:

@roblourens roblourens added feature-request Request for new features or functionality debug Debug viewlet, configurations, breakpoints, adapter issues labels Mar 27, 2023
@VSCodeTriageBot VSCodeTriageBot added this to the Backlog Candidates milestone Mar 27, 2023
@VSCodeTriageBot
Copy link
Collaborator

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!

@VSCodeTriageBot
Copy link
Collaborator

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

@miki5799
Copy link

I'd like to bump that this issue persists in the debug console as well and is not limited to the watch variable view.

See screenshot below:
image

@ah3243
Copy link

ah3243 commented Apr 9, 2024

definitely would be a good feature, especially when checking prompts which are often over the limit that the text is clipped when you just hover over the variable. It'd save alot of time and make it much easier than copy pasting or printing it out.

@GoGoris
Copy link

GoGoris commented May 27, 2024

I would also like to add my vote to this change request because it is currently virtually impossible to read a long string such as a sql query in debug mode without logging it:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

6 participants