Reveal2通过lldb调试的方法
来源:互联网 发布:淘宝菲艺轩怎么样 编辑:程序博客网 时间:2024/05/01 01:51
一、添加lldbinit文件
打开终端,输入如下指令:
vim ~/.lldbinit
然后将以下内容复制进入
command alias reveal_load_sim expr (void*)dlopen("/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/RevealServer.framework/RevealServer", 0x2);command alias reveal_load_dev expr (void*)dlopen([(NSString*)[(NSBundle*)[NSBundle mainBundle] pathForResource:@"libReveal" ofType:@"dylib"] cStringUsingEncoding:0x4], 0x2);command alias reveal_start expr (void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStart" object:nil];command alias reveal_stop expr (void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStop" object:nil];
指令的作用:
- reveal_load_sim 模拟器加载reveal调试用的动态链接库。
- reveal_load_dev 真机加载reveal调试用的动态链接库。
- reveal_start 启动reveal调试功能。
- reveal_stop 结束reveal调试功能。
二、添加BreakPoint
按下图进行设置:
打开breakpoint编辑界面
点击左下角的+,选择Symbolic Breakpoint
如图设置该断点,作用是程序启动时,断点自动启动。断点启动后,选择继续执行,reveal的库就动态添加到项目中了。此时再打开reveal,就可以查看你模拟器的项目了
三、reveal1.x和reveal2.x的区别
1.X : command alias reveal_load_sim expr (void*)dlopen("/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib", 0x2);2.X : command alias reveal_load_sim expr (void*)dlopen("/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/RevealServer.framework/RevealServer", 0x2);
主要区别是iOS-Libraries的库不一样了
参考链接
http://support.revealapp.com/kb/getting-started/load-the-reveal-server-via-an-xcode-breakpoint
http://blog.csdn.net/nadazero/article/details/52638696
0 0
- Reveal2通过lldb调试的方法
- Reveal2调试别人App的界面
- Xcode中lldb的REPL调试方法
- iOS LLDB 调试方法
- 通过Chisel加强LLDB的UI调试能力
- 通过Chisel加强LLDB的UI调试能力
- 通过lldb远程调试iOS App
- xcode + lldb简单的调试
- LLDB 调试 UI 的技巧
- LLDB调试
- LLDB调试
- lldb调试
- lldb 调试
- LLDB调试
- LLdb调试
- LLDB调试
- iOS调试-通过lldb断点来打印log
- Xcode的控制台调试命令 LLVM lldb
- ajax请求无法下载文件
- leetcode-224-Basic Calculator
- 【计算机网络】端口号的分类
- JXLS使用方法(文件上传读取)xlsx文件读取
- 傅里叶变换
- Reveal2通过lldb调试的方法
- 缓存雪崩,缓存穿透解决方案
- 监听EditText输入框内输入内容的变化
- 直接交换数据
- Linux源码中的mktime算法解析
- runtime消息发送
- jsonp 关于跨域
- css 3 基础选择器。
- linux下讲解MySQL安装与登录方法