Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

vectors and arrays are truncated in debug view.

未关闭
#14,374 4 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@sean-mcmanus 已经在做这个了。

开始于 2026年4月14日。

评估

这个 Issue 还没有评估数据。

描述

bug debugger more info needed
Environment
  • OS and version: Windows 11
  • VS Code: latest
  • C/C++ extension: 0.4.6
  • GDB / LLDB version: microsoft debugger
Bug Summary and Steps to Reproduce
Image Problem Summary

When debugging large containers (e.g., vectors with thousands of elements), the VS Code debugger stops displaying element values after an arbitrary index. Instead, entries appear as empty ({}), even though the data is actually present.

Expanding an individual element reveals that the data exists and is correctly populated, which indicates this is a UI/display limitation rather than a data or debugger issue.

Expected Behavior

The debugger UI should:

  • Display values for all visible elements in the watch/locals window.
  • Use lazy loading / virtual scrolling to fetch only the elements currently in view.
  • Dynamically request additional data as the user scrolls.

Actual Behavior

After a certain number of elements, entries are shown as {} (empty).
Values only appear when manually expanding each node.
This makes inspecting large datasets impractical.

Impact

This significantly reduces the usability of the debugger for:

Numerical computing
Graphics / simulation data
Any workload involving large arrays or vectors

Performance optimizations (like limiting displayed elements) should not come at the cost of hiding valid data.

  • Suggested Improvement

Implement viewport-based data fetching:

  • Query debugger engine only for visible rows (with small buffer)
  • Load additional elements on scroll
  • Maintain responsiveness without sacrificing visibility
主要语言
TypeScript
星标
6.2k
派生
1.7k
平均合并
1 天 4 小时
30 天内合并 PR
58

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/vscode-cpptools 的其他 Issue

查看 microsoft/vscode-cpptools 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。