Skip to content

Long strings are cutoff when hovering over local value while debugging #22622

@nicolehaugen

Description

@nicolehaugen
  • VSCode Version: 1.11.0-insider
  • OS Version: Win 10

Steps to Reproduce:

This issue likely can be repro'ed with other types of projects, but I ran into this when working with node.js where you hover over a value during debugging that contains a large string.

For example, node.js's internal modules have methods that take the contents of an entire javascript file as a string parameter in order to compile it (such as VM.js's runInThisContext method) - if you attempt to hover over this parameter to see its value while debugging, you aren't able to see all of the javascript because it is cutoff and there isn't any ability to scroll within the window to see all of the javascript. This can be painful when trying to debug.

Below are basic steps to repro the issue - but keep in mind, that the real scenario when I've hit this is when debugging through node.js internal modules where javascript is passed around as a string parameter.

  1. Create a node.js project
  2. Store a string as a var and place a break point on the variable (the string should be very long, such as the contents of a multiline js file)
  3. When you hit the breakpoint, hover over the var to see it's value

Notice that the popup that shows the value of the string doesn't have scrollbars - also, if the contents of the string are long enough, the text will be cut off so that you can't see the entire contents of the string value.

Here is a screenshot that also shows the problem - note that when I hover over the "code" parameter. The popup window doesn't have anyway to scroll through the entire contents of the "code" parameter and it's cutoff so that I can't view all of the parameter's value.
cutoff

Metadata

Metadata

Assignees

Labels

debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityrelease-notesRelease notes issuesverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions