LLDB Debugging

9aae0d43a001b7a1bc459bee08c0a24c?s=47 Shohei Yokoyama
December 11, 2018
1k

LLDB Debugging

9aae0d43a001b7a1bc459bee08c0a24c?s=128

Shohei Yokoyama

December 11, 2018
Tweet

Transcript

  1. CA.swift CyberaAgent Presents iOS Developer’s Meetup LLDB Debugging shoheiyokoyama CA.swift

    CyberaAgent Presents iOS Developer’s Meetup
  2. CA.swift CyberaAgent Presents iOS Developer’s Meetup shoheiyokoyama shoheiyokoyama shoheiyokoyam

  3. 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
  4. CA.swift CyberaAgent Presents iOS Developer’s Meetup <noun> <verb> [-options [option-value]]

    [argument [argument...]] The LLDB Command
  5. 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
  6. CA.swift CyberaAgent Presents iOS Developer’s Meetup (lldb) run

  7. 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…
  8. 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/
  9. CA.swift CyberaAgent Presents iOS Developer’s Meetup The LLDB command (lldb)

    expression val = something Description: Evaluate an expression on the current thread
  10. 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()
  11. 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.
  12. CA.swift CyberaAgent Presents iOS Developer’s Meetup The LLDB command (lldb)

    expression -O -- object Description: expression -O -- ==> po
  13. CA.swift CyberaAgent Presents iOS Developer’s Meetup The LLDB command (lldb)

    po label.text = “Hello LLDB”
  14. 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
  15. CA.swift CyberaAgent Presents iOS Developer’s Meetup The LLDB Debugging with

    Python CA.swift CyberaAgent Presents iOS Developer’s Meetup
  16. CA.swift CyberaAgent Presents iOS Developer’s Meetup (lldb) command script import

    ~/hello.py Import python file
  17. CA.swift CyberaAgent Presents iOS Developer’s Meetup Custom LLDB command

  18. CA.swift CyberaAgent Presents iOS Developer’s Meetup Config file ~/.lldbinit ~/.lldbinit-Xcode

    CLI: Xcode: command source ~/.lldbinit
  19. 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
  20. CA.swift CyberaAgent Presents iOS Developer’s Meetup Enjoy LLDB debugging