There is no support for qstring by default in Lldb, you need to add it yourself.
1. Create the ~/.lldb folder in the user directory and create a ' qstring.py ' file in the folder. The contents of the qstring.py are:
ImportLldbdefUtf16string_summary (Value, *rest): D= value. Getchildmemberwithname ("D") Length= D.getchildmemberwithname ("size"). getvalueassigned () offset= D.getchildmemberwithname ("Offset"). getvalueassigned () address= d.getvalueasunsigned () +OffsetifLength = =0:return '""'Error=Lldb. Sberror ()#UTF-16, so we multiply length by 2bytes= value. GetProcess (). ReadMemory (Address, length * 2, error)ifbytes isNone:return '""' return ''%s ''% (Bytes.decode ('utf-16'). Encode ('Utf-8')) def __lldb_init_module(Debugger, *rest):Print "Registering QString"Summary= Lldb. Sbtypesummary.createwithfunctionname ("qstring.utf16string_summary") Summary. SetOptions (Lldb.etypeoptionhidechildren) debugger. Getdefaultcategory (). Addtypesummary (lldb. Sbtypenamespecifier ("QString", False), summary)
2. Create a ~/.lldbinit file, write a command to the script import ~/.lldb/qstring.py '
3. Restart Xcode to take effect
Reference
Https://github.com/tgebarowski/lldb-scripts
See Qstring data in Xcode