My device: iOS11.3.1,iPhone7P
Xcode: version 9.4.1, configuration is default.
demo:
#import "ViewController.h"
@interface ViewController ()
@property (nonatomic, assign) int count;
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
[self test];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (void)test
{
NSLog(@"hi.");
self.count = 5; // watch it!
NSLog(@"count: %d", self.count);
NSLog(@"bye.");
}I want to watch variable "count",but failed.
NOTE: breakpoint is OK.
And there is a situation to explain: In the same environment,iOS10 watchpoint can work
How to solve it? thx