Thinking Out Loudlldb

Attach to Process by PID or Name...

Tue, May 02, 2017

Some how Xcode’s “Attach to Process by PID or Name..” came up recently in conversation and several of my developer friends had never heard about it. I’d like to quickly walk through my favorite use case, auto attaching to a process when it launches.

  1. xcode
  2. lldb

Debugging with Private API

Wed, Nov 16, 2016

UIKit has a built in physics engine called UIKit Dynamics. It’s how Apple has implemented quite a few of the animations in iOS. It’s pretty powerful but it can also be a pain in the ass to debug. According to Session 229 from WWDC 2015, the supported way for debugging is to use private API on UIDynamicAnimator. There are some hacks for gaining access to private API inside of Objective-C — things like using NSInvocation — but they’re not supported in Swift. That’s ok though, because Apple actually wants us to use lldb to access this private API.

  1. ios-dev
  2. objective-c
  3. swift
  4. lldb
  5. uikit-dynamics