You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
kastiglione
changed the title
bmessage breakpoints fail on methods in defined in categories
bmessage breakpoints fail on methods defined in categories
Dec 2, 2014
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: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:
br s -r '-\[UIView(\(.+\))? setFrame:\]'
target modules dump symtab
.Any better ideas?
The text was updated successfully, but these errors were encountered: