Skip to content

Support variable paging (aka chunked arrays) #9537

@weinand

Description

@weinand

Currently large data structures (Array, Map, Set) are broken into "chunks" in the debug adapter. Potentially this results in lots of duplication.

This feature request asks for doing this in the VS Code debugger UI once and for all.

An implementation sketch:

  • if a variable, scope, or evaluate result has a totalCount attribute, check whether its value is larger than some (configurable) threshold.
  • if yes then insert intermediate variable nodes between the parent and the children so that every node covers the range 0..threshold-1. Show this range as the label of the intermediate node.
  • if an intermediate node is expanded, fetch only the corresponding range of children via the variablesRequest and the new start and count arguments.
  • return a value of true for the supportsVariablePaging capability to indicate that the UI handles variable paging.

The corresponding protocol addition: microsoft/vscode-debugadapter-node#31

Metadata

Metadata

Assignees

Labels

debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions