Oh wow that does work, thank you so much! I agree that it would be nice to be able to control synthetic children more. It seems like its very much tied to children representing something that actually ‘exists’ in data rather than just being able to say “here’s a node that’s just organizational,” or a node that shows custom data. Its hard to tell though, the docs are still very much lacking in a lot of places :p.
If you’re using lldb-dap, you can enable
enableSyntheticChildDebuggingin your launch configuration (docs). Then, you’ll have a[raw]entry for values with synthetic children. Under this entry, you should see theptrandlenmembers.
I did use this for awhile, but the problem with it was that it would append those entries at the end of the children list, so if an array had some large amount of values (e.g. due to a corrupt/uninitialized len) it would be a pain to find those entries.