Upgrade to Pro — share decks privately, control downloads, hide ads and more …

LLDB

Khoa Pham
August 27, 2015

 LLDB

Tips on using LLDB

Khoa Pham

August 27, 2015
Tweet

More Decks by Khoa Pham

Other Decks in Programming

Transcript

  1. LLDB Home page http://lldb.llvm.org/ LLDB is an open-source debugger that

    features a REPL, along with C++ and Python plugins
  2. Command $ variable Anything starting with a dollar sign is

    in LLDB’ s namespace and exists to help you print $0 + 7
  3. Command - expression Evaluate an expression (ObjC++ or Swift) in

    the current program context, Modify values in the program expression $0 = 10 e $0 = 10
  4. Command - print 'print' is an abbreviation for 'expression --'.

    Use -- to signify the end of the flags and the beginning of the input e --location -- -count
  5. Command - thread return Executes the return command, jumping out

    of the current stack frame thread return YES
  6. Python LLDB has full, built-in Python support. If you type

    script in LLDB, it will open a Python REPL
  7. References - Getting Started with LLDB - Dancing in the

    Debugger — A Waltz with LLDB - Video Tutorial: Using LLDB in iOS - Navigating and discovering an iOS codebase using lldb - chisel