I don't know if there was a recent change or regression to lldb, but in order to set breakpoints on methods defined in categories, the category needs to be included in the breakpoint name.
For example, setting a breakpoint on -setFrame: now has to be:
breakpoint set -n '-[UIView(Geometry) setFrame:]'
Currently, bmessage doesn't consider categories when creating the breakpoint and silently fails on methods defined in categories.
I don't know of anyway to find out the category from the objc runtime. If that's indeed not possible the two ways I fixes I can think of are:
- Use a regex breakpoint:
br s -r '-\[UIView(\(.+\))? setFrame:\]'
- Scrape the category out of the symbol table:
target modules dump symtab.
Any better ideas?