条件断点 符号断点

the breakpoint will always be skipped. Your breakpoint condition can be any code that evaluates true or false. For example, if you only want the breakpoint to stop when running on the main thread, you could use[NSThread isMainThread] as your condition.

 

使用[NSThread isMainThread]可以判断是否运行在主进程。

 

可以不接触源码的情况下断点函数:

Symbolic Breakpoints

Symbolic breakpoints allow you to set breakpoints whenever specific selectors are sent messages. For example, here’s thesymbolicBreakpointAction: method in the demo app:

 

 

 

观察变量什么时候被修改

  (lldb) watch set variable _button1ClickCount
    Watchpoint created: Watchpoint 1: addr = 0x0b9a1ca4 size = 4 state = enabled type = w
        declare @ 'MyStuff/MyStuff/BNRDetailViewController.m:52'
        watchpoint spec = '_button1ClickCount'
        new value: 10

 

转载于:https://www.cnblogs.com/studyNT/p/4515907.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值