美文网首页
iOS 常用LLDB指令

iOS 常用LLDB指令

作者: gaookey | 来源:发表于2021-11-22 16:45 被阅读0次
NSObject *obj = [[NSObject alloc] init];

print、p:打印

image.png

po:打印对象

image.png

读取内存:

  • memory read/数量格式字节数 内存地址
  • x/数量格式字节数 内存地址

格式:

  • x:16进制
  • f:浮点
  • d:10进制

字节大小:

  • b:byte 1字节
  • h:half word 2字节
  • w:word 4字节
  • g:giant word 8字节
image.png image.png image.png image.png

修改内存中的值:memory write 内存地址 数值

image.png

相关文章

网友评论

      本文标题:iOS 常用LLDB指令

      本文链接:https://www.haomeiwen.com/subject/hiubtrtx.html