想要给xcode中添加符合一定条件判断的断点
比如:id为user-e201ca43-3c30-4720-b9a6-61f2f9e3b6d5时再去中断运行,供调试
xcode breakpoint condition
Using Breakpoints in Xcode – Jeffrey Sambells
Setting Breakpoint Actions and Options
Xcode conditional break points · paul-samuels.com
对于已有断点,右击-》Edit Breakpoint
结果导致挂了:
[已解决]iOS app调试时挂了停在symbol stub for getpid
最后无奈,暂时用代码去判断条件,中断执行:
//for debug
if newContactItem.id == "user-e201ca43-3c30-4720-b9a6-61f2f9e3b6d5" {
gLog.debug("\(newContactItem.type) \(newContactItem.name) \(newContactItem.id)")
}
转载请注明:在路上 » 【未解决】xcode中添加符合一定判断条件的断点