最新消息:VPS服务器又从fzhost.net换回Linode了,主题仍用朋友推荐的大前端D8

【未解决】xcode中添加符合一定判断条件的断点

Xcode crifan 294浏览 0评论

想要给xcode中添加符合一定条件判断的断点

比如:id为user-e201ca43-3c30-4720-b9a6-61f2f9e3b6d5时再去中断运行,供调试

xcode breakpoint condition

objective c – How to set a conditional breakpoint in Xcode based on an object string property? – Stack Overflow

Using Breakpoints in Xcode – Jeffrey Sambells

Setting Breakpoint Actions and Options

Xcode conditional break points · paul-samuels.com

Xcode conditional breakpoints

Xcode – power of breakpoints

对于已有断点,右击-》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中添加符合一定判断条件的断点

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
15 queries in 0.208 seconds, using 10.30MB memory