使用断点改变变量的值,不用重新运行xcode。

应用场景:
1.假设有个view的frame,我只想改变frame的x或y

2.假设有个变量是NO,我想改变成YES
if (isAlert) {
UIAlertView * alertView = [[UIAlertView alloc] initWithTitle:@"弹窗" message:@"你好啊" delegate:nil cancelButtonTitle:@"确定" otherButtonTitles: nil];
[alertView show];
}

3.假设有个字符串NSString * url = @"https://baidu.com".我想改成淘宝链接@"https://taobao.com"

网友评论