Chris Davis
I ❤️ Augmented Reality

Useful lldbinit Commands

A small collection of custom commands for your ~/.lldbinit, for the things I kept doing by hand in the debugger.

json — give it a String, a Data or an object and it decodes it and pretty-prints the JSON, rather than making you squint at an escaped one-line blob.

number — prints a value to 20 decimal places, for when the debugger shows you scientific notation and you actually needed to see the digits.

open — takes a variable holding a file path or URL and opens it.

https://github.com/nthState/lldbinit