eclipse-cdt-cloud / eclipse-cdt-cloud/cdt-gdb-vscode
STL contaners items not visible in VARIABLES view
- Dominant language
- TypeScript
- Stars
- 26
- Forks
- 31
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 2
Description
## Environment
* CDT GDB Debug Adapter Extension: version 2.4.1
* VSCodium version: 1.105.17075
* Launch configuration
```JSON
{
"name": "run",
"type": "gdb",
"request": "launch",
"program": "test",
"arguments": "TSAN_OPTIONS=second_deadlock_stack=1",
"cwd": "test_dir",
"environment": {},
"initCommands": [
"-gdb-set disassembly-flavor intel",
"-enable-pretty-printing",
],
"openGdbConsole": true,
"preLaunchTask": "Build",
}
```
## Steps
* A minmal C++ code that uses STL containers (eg. std::vector)
* Add a breakpoint after container initialization
* launch the debug session (see the Environment section)
* Observe the "VARIABLES" pane and look for "Local" variables
## Outcome
* The STL containers are listed but their details is minimal (some metadata but not details about items)
* Printing the variables in the gdb console shows the same metadata plus items details, it looks like the variables view truncates the output of gdb print
* See attached pictures
* Variables view:
* gdb console:
* Code:
## Expected
* Variables view should also show container items
Contributor guide
Assessment
This issue has not been assessed yet.