【问题标题】:Is there a way to get a an integer stored in memory output in lldb having a watch point有没有办法让一个整数存储在 lldb 的内存输出中,有一个观察点
【发布时间】:2021-04-01 14:29:35
【问题描述】:

有没有办法在不停止应用程序的情况下获取一个存储在内存 x8 00000....21 输出中的整数,在 ex: 0x000000010092e1b4 上有一个观察点

(我正在尝试从 IOS 应用程序读取实时 int 值)

【问题讨论】:

    标签: xcode debugging integer output lldb


    【解决方案1】:

    您可以在地址上设置观察点(并指定大小),并在该观察点上添加一个命令,以在每次点击观察点时执行。例如,每次点击观察点时都会打印variable

    (lldb) wa se e -s 8 -- 0x000000010092e1b4
    (lldb) wa comm add 
    Enter your debugger command(s).  Type 'DONE' to end.
    > p variable
    > c 
    > DONE
    (lldb)
    

    【讨论】:

      猜你喜欢
      • 2017-08-15
      • 1970-01-01
      • 1970-01-01
      • 2020-12-16
      • 2017-02-23
      • 2018-05-20
      • 1970-01-01
      • 2020-12-14
      • 2021-10-25
      相关资源
      最近更新 更多