scripts/lldb/print_array/README.md
This helper adds a small LLDB command for printing a fixed-size array that lives behind a pointer expression.
Import the script:
command script import <duckdb repository root>/scripts/lldb/print_array/print_array.py
Then call:
print_array <path> <size>
Examples:
print_array result_sel.sel_vector 1024
print_array row_ids count
print_array data_ptr standard_vector_size
<path> must evaluate to a non-null pointer in the selected frame<size> must evaluate to a positive integer<size> can be either:
1024countThe command:
(<type>[<size>])Internally it issues an LLDB expression equivalent to:
*((<pointee type> (*)[<size>])(<path>))
You can ask LLDB for the built-in usage text with:
print_array --help