Open hengyuekang opened 1 year ago
All C++ type visualizations are inherited from the upstream LLDB. I'd recommend trying to reproduce the bug with CLI LLDB then filing a bug with them, if confirmed.
now the set should be with size of 4. In raw pointer, the element count is 4, while it shows 0 in codelldb
also, if i try using vertex.size() to assign variable size, it also does well.
the size of this set in codelldb always gonna show 0
OS: Ubuntu 22.04.2 LTS VSCode version: Version: 1.77.3 (Universal) CodeLLDB version: v1.9.0 Compiler: Ubuntu clang version 14.0.6 Debuggee: x86-64-UNIX-System V
I'm remotely developing a program in Virtual Machine on my server with my laptop(macOS Monterey Version 12.0.1). While debugging with lldb, I found that the size and contents of std::vector in the sidebar are correct but for std::unordered_map, it keeps showing size=0 even after inserting elements.
This is the code for the test:
the configuration file
launch.json
:and compiled it with:
clang++-14 -g codelldb_test.cc -std=c++14 -O0 -o codelldb_test
This is a capture of the screen while debugging:
Obviously, it didn't show the right size of m(an unordered_map) after counting(inserting elements).
(BTW: could you give me more detailed instructions about how to capture the verbose log? I tried to add "lldb.verboseLogging":true to the
launch.json
file, but it shows "Property lldb.verboseLogging is not allowed." and nothing happened when reproducing the problem)