码迷,mamicode.com
首页 > 数据库 > 详细

LLDB

时间:2019-10-30 13:32:26      阅读:76      评论:0      收藏:0      [点我收藏+]

标签:cto   注意   The   top   加载   --   地址   stop   目录   

根据方法名称设置断点:breakpoint set -n 断点方法名称

查看断点列表:breakpoint list

禁用断点:breakpoint disable 1:禁用第一组的断点

启动断点:breakpoint enable 1:启动第一组的断点

删除断点:breakpoint delete 1.1 :删除1.1的断点。注意,删除只能删除某一组,

根据类方法设置断点:breakpoint  set --selector touchesBegan:withEvent: 

设置ViewController里的touchesBegan方法的断点:breakpoint set --file ViewController.m --selector touchesBegan:withEvent:

根据模糊关键字设置断点:breakpoint  set -r game

设置指定ViewController里关键字的断点:breakpoint set --file ViewController.m -r 关键字

image lookup

当前进程加载了哪些库:image list

内存断点:watchpoint

--------------------------------------------------------------------------

设置断点:b set -n 断点方法名称  b为breakpoint 简写,也可以简写成break、br、bre等

新建lldbinit文件的步骤:

1、在??目录下,vi .lldbinit

2、写入target stop-hook add -o "frame variable"

保存退出:x

断点的时候可以自动打印方法里的变量

 

物理地址 = ASLR+虚拟地址

LLDB

标签:cto   注意   The   top   加载   --   地址   stop   目录   

原文地址:https://www.cnblogs.com/Jacksun11/p/11764088.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!