let data = ["Data1","Data2","Data3","Data4","Data5"];
for (index,item) in data.enumerated() {
print(index)
}
场景:遍历data数组,index大于2时进入断点,其余情况不进入
解决:条件断点
let data = ["Data1","Data2","Data3","Data4","Data5"];
for (index,item) in data.enumerated() {
print(index)
}
场景:遍历data数组,index大于2时进入断点,其余情况不进入
解决:条件断点