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

LLDB Debugging

Shohei Yokoyama
December 11, 2018
1.6k

LLDB Debugging

Shohei Yokoyama

December 11, 2018
Tweet

Transcript

  1. CA.swift CyberaAgent Presents iOS Developer’s Meetup The LLDB Debugger A

    next generation, high-performance debugger. LLDB is the default debugger in Xcode on Mac OS X and supports debugging C, Objective-C and C++ on the desktop and iOS devices and simulator. The LLDB Debugger, WHAT IS LLDB?, https://lldb.llvm.org/index.html
  2. CA.swift CyberaAgent Presents iOS Developer’s Meetup (lldb) breakpoint set --file

    hello.c --line 8 The LLDB Command The LLDB Debugger, GDB TO LLDB COMMAND MAP, https://lldb.llvm.org/lldb-gdb.html
  3. CA.swift CyberaAgent Presents iOS Developer’s Meetup ɾThe LLDB Debugging in

    C program https://github.com/shoheiyokoyama/LLDB-Debugging/tree/master/c ɾThe REPL and Debugger in Swift https://github.com/shoheiyokoyama/LLDB-Debugging/tree/master/swift For more detail…
  4. CA.swift CyberaAgent Presents iOS Developer’s Meetup Advanced Debugging with Xcode

    and LLDB WWDC 2018 - Session 412 https://developer.apple.com/videos/play/wwdc2018/412/
  5. CA.swift CyberaAgent Presents iOS Developer’s Meetup The LLDB command (lldb)

    expression val = something Description: Evaluate an expression on the current thread
  6. CA.swift CyberaAgent Presents iOS Developer’s Meetup The LLDB command (lldb)

    expression label.text = “Hello LLDB” Description: In suspended state, the frame buffer isn't updated. Run expression CATransaction.flush()
  7. CA.swift CyberaAgent Presents iOS Developer’s Meetup The LLDB command (lldb)

    expression -O -- object Description: Display using a language-specific description API, if possible. Output CustomDebugStringConvertible.debugDescription.
  8. CA.swift CyberaAgent Presents iOS Developer’s Meetup The LLDB command (lldb)

    expression -O -- object Description: expression -O -- ==> po
  9. CA.swift CyberaAgent Presents iOS Developer’s Meetup For more detail… ɾThe

    Debugging with Xcode and LLDB https://github.com/shoheiyokoyama/LLDB-Debugging/tree/master/DBug
  10. CA.swift CyberaAgent Presents iOS Developer’s Meetup The LLDB Debugging with

    Python CA.swift CyberaAgent Presents iOS Developer’s Meetup
  11. CA.swift CyberaAgent Presents iOS Developer’s Meetup facebook / chisel A

    collection of commands to assist in the debugging of iOS apps https://github.com/facebook/chisel