Changes between Version 1 and Version 2 of lldb formatters


Ignore:
Timestamp:
Jul 21, 2018 4:27:04 PM (6 years ago)
Author:
Simon Fraser
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • lldb formatters

    v1 v2  
    55Some formatters are provided in Tools/lldb/lldb_webkit.py. To have these always present when debugging in lldb, include this file in your ~/.lldbinit file:
    66
    7     command script import {Path to WebKit Root}/Tools/lldb/lldb_webkit.py
     7   ` command script import {Path to WebKit Root}/Tools/lldb/lldb_webkit.py`
    88
     9
     10== Writing new formatters
     11
     12New formatters for common types are always welcome. They are not hard to write; see <https://trac.webkit.org/changeset/234062> for an example of one being added.
     13
     14== Tips and tricks for writing formatters
     15
     16* Documentation is at https://lldb.llvm.org/varformats.html
     17* The lldb python bindings are documented at https://lldb.llvm.org/python_reference/
     18* Xcode caches the formatters between runs. If debugging your formatter in Xcode. you have to quit and relaunch Xcode after each change.
     19* You can just print from the formatter code and it will show up in Xcode's debugger output window