wiki:lldb formatters

Version 2 (modified by Simon Fraser, 3 years ago) (diff)


lldb formatters

lldb supports "summary providers" which can show a summary for non-POD data types.

Some formatters are provided in Tools/lldb/ To have these always present when debugging in lldb, include this file in your ~/.lldbinit file:

command script import {Path to WebKit Root}/Tools/lldb/

Writing new formatters

New formatters for common types are always welcome. They are not hard to write; see <> for an example of one being added.

Tips and tricks for writing formatters