Set breakpoints on specific method in all objects

June 26, 2013

Valentin Radu of Cocoa Exposed

Let’s say that during debugging you want to pause execution every time a view will appear in an iOS app (viewWillAppear) and you have so many controllers that adding the breakpoints manually would be cumbersome.

Valentin goes on to explain how you can accomplish this by using the LLDB command line to set breakpoints on a specific method or function.