【问题标题】:How can I print XPC msg in lldb the full object using po or other method如何使用 po 或其他方法在 lldb 中打印完整对象中的 XPC msg
【发布时间】:2020-08-04 06:53:13
【问题描述】:
(lldb) po 0x7fa5ed509460
<OS_xpc_data: data[0x7fa5ed509460]: { refcnt = 1, xrefcnt = 1, buff = 0x7fa5ee00d040, len = 1921 } <data: 0x7fa5ed509460>: { length = 1921 bytes, contents = 0x62706c6973743030d4010203040506070a58247665727369... }>

我有一个 XPC 消息,我想打印内容中的完整数据,如果它被序列化(它是)反序列化它。

我尝试了以下方法:

po [[0x7fa5ed40d440 dictionary] objectForKey:@"contents"]
po [[0x7fa5ed40d440] objectForKey:@"contents"]
po 0x7fa5ed509460.contents
po 0x7fa5ed509460->contents
po 0x7fa5ed509460[@"contents"]

它们都不起作用。

获取它的正确方法是什么? 反序列化的正确方法是什么?

【问题讨论】:

    标签: macos lldb


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 2014-11-21
      • 1970-01-01
      • 2014-09-07
      • 2019-03-08
      • 1970-01-01
      • 2015-01-09
      • 2022-01-22
      • 2019-12-25
      • 2013-06-20
      相关资源
      最近更新 更多