vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

Unable to see past 1000 visualized elements for ArrayItems

Open WardenGnaw opened this issue 3 years ago • 0 comments

Environment

  • OS and version: Win 11 21H2
  • VS Code: 1.70.2
  • C/C++ extension: 1.12.2
  • GDB / LLDB version: GNU 9.2

Bug Summary and Steps to Reproduce

Bug Summary: Can not visualize past 1000 elements with ArrayItems in NatVis

Steps to reproduce:

  1. Use https://github.com/microsoft/MIEngine/tree/main/test/CppTests/debuggees/natvis/src
  2. With the config below.
  3. Modify it to have 2000 Array Items
  4. See that we can not go past 1000 items.

Debugger Configurations

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(gdb) Launch",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/a.out",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${fileDirname}",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                },
                {
                    "description":  "Set Disassembly Flavor to Intel",
                    "text": "-gdb-set disassembly-flavor intel",
                    "ignoreFailures": true
                }
            ],
            "visualizerFile": "MIEngine/bin/DebugAdapterProtocolTests/Debug/CppTests/debuggees/natvis/src/visualizer_files/Simple.natvis"
        }

    ]
}

Debugger Logs

Logs are not too useful here. Investigate with debug MIEngine bits.

Other Extensions

No response

Additional Information

No response

WardenGnaw avatar Aug 27 '22 19:08 WardenGnaw