标签:
给断点添加条件
- (void)testCondition2 { NSArray *array = @[@"我们", @"一起", @"来", @"玩", @"abc123"]; NSInteger i = arc4random() % array.count; NSString *str = array[i]; NSLog(@"%zd, %@", i, str); NSLog(@"%zd, %@", i, str); }
整数情况:
字符串情况下(有non-ASCII characters):
字符串情况下(无non-ASCII characters):
这个condition 后面可以有分号(‘;‘)或者没有.
特别是在: 字符串情况下(有non-ASCII characters), 可以参考:
http://stackoverflow.com/questions/17192505/error-in-breakpoint-condition
iOS bug调试技巧学习----breakpoint&condition
标签:
原文地址:http://www.cnblogs.com/xzjxylophone/p/5456138.html