Reveal调试UI工具的使用
2015-09-10 14:37
465 查看
在Commend命令行中,直接执行 vim ~/.lldbinit命令,将这个文件打开,输入下面语句
command alias reveal_load_sim expr (void*)dlopen("/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib",
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];
完成之后,ESC ,shift+:,wq保存退出。
然后在你的项目的AppDelegate的FinishLaunch函数中打一个断点,右击编辑这个断点,Action命令里面输入Debugger Command命令,reveal_load_sim/reveal_load_dev这两个命令中的一个,前面是模拟器后面是真机。启动起来之后在Reveal中就可以调试UI操作了。
另外可以在Reveal的标签栏的帮助栏中的show Reveal library in folder,找到Reveal.framework,将Reveal.framework引用到工程中,添加libz.dylib,然后修改Settings的other Link,添加 -ObjC。
直接运行工程,在Reveal里可以直接调试UI。
final!
command alias reveal_load_sim expr (void*)dlopen("/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib",
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];
完成之后,ESC ,shift+:,wq保存退出。
然后在你的项目的AppDelegate的FinishLaunch函数中打一个断点,右击编辑这个断点,Action命令里面输入Debugger Command命令,reveal_load_sim/reveal_load_dev这两个命令中的一个,前面是模拟器后面是真机。启动起来之后在Reveal中就可以调试UI操作了。
另外可以在Reveal的标签栏的帮助栏中的show Reveal library in folder,找到Reveal.framework,将Reveal.framework引用到工程中,添加libz.dylib,然后修改Settings的other Link,添加 -ObjC。
直接运行工程,在Reveal里可以直接调试UI。
final!
相关文章推荐
- android.database.CursorIndexOutOfBoundsException:Index -1 requested, with a size of 1
- U3D里UI相关逻辑和文件的组织关系的各种形式的比较
- iOS UUID deprecated corebluetooth
- iOS如何利用UITableView实现单选效果
- JAVA UUID 生成
- UnexpectedValueException Could not parse version constraint ^1.0.2: Invalid version string “^1.0.2”
- ubuntu12.04 create SAP issues
- SAP SD 顾问面试问题 consultant interview questionnaire
- Build Settings中的变量@rpath,@loader_path,@executable_path
- request与session区别
- 改变UITextField PlaceHolder的字体和颜色,不影响正常输入
- PowerBuilder12.5和PowerBuilder12.6数据管道的问题
- Exception occurred during processing request: null java.lang.NullPointerException
- UIActivityIndicatorView
- UI一揽子计划 13 (UITabBarController 、UITabBar、UITabBarItem 、Block传值)
- UI一揽子计划 12 (模态ViewController、单例、通讯录实战、)
- UI一揽子计划 11 (自定义UITableViewCell、Cell 的自适应高度)
- UI一揽子计划 10 (UITableView 中cell 的编辑, 增加, 删除、UITableViewController 、)
- UI一揽子计划 9 (UITableView 、UITableView 、重用机制)
- UI一揽子计划 8 (UINavigationController 、界面通信 、NSTimer 、NSUserDefaults)