You can specify the conditions of the breakpoint, hold the option and command and click the breakpoint, you should get a pop-up window. In the condition field, yo can enter something like
[entityName isEqualToString:@"Business"]
(Note that you must compare strings with -isEqualToString: not == , since the latter compares the pointers, not the characters in the strings themselves.)
Using a condition at a breakpoint, you do not need to execute the if statement at all, nor enable or disable validation without recompiling. You can do a lot with breakpoint settings, for example, whether it automatically logs a message or runs a debugger command, etc.
Vic smith
source share