zoukankan      html  css  js  c++  java
  • 条件断点 符号断点

    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
  • 相关阅读:
    网站代码优化总结
    移动端 H5 页面注意事项
    js基础知识点收集
    2017-3-26 webpack入门(一)
    gulp教程
    less的使用
    微信小程序接口封装
    div上下左右居中几种方式
    前端知识点-面试
    call和apply
  • 原文地址:https://www.cnblogs.com/studyNT/p/4515907.html
Copyright © 2011-2022 走看看