官网:https://www.waitsun.com/tag/reveal
其他地方下载:
https://www.imacso.com/reveal.html
https://www.xxmac.com/reveal.html
下载好Reveal安装好后,参考
https://support.revealapp.com/hc/en-us/articles/360022477972-Load-Reveal-Server-via-an-Xcode-Breakpoint
1、打开Reveal -> Help
-> Install Debugger Commands
![](https://img.haomeiwen.com/i1605558/3fb26d7839fac183.png)
2、打开要调试的项目
2.1 左下角+
-> Symbolic Breakpoint
2.2 配置断点
Symbol: UIApplicationMain
Action: Debugger Command
命令:reveal load --autostart
![](https://img.haomeiwen.com/i1605558/d876fa76bafd335f.png)
2.3 将断点移到User里
将断点移到 断点 -> 右键单击 -> Move Breakpoint To
-> User
![](https://img.haomeiwen.com/i1605558/e0e079e049e5a59b.png)
运行后会报如下错误
error: 'reveal' is not a valid command.
![](https://img.haomeiwen.com/i1605558/05a41a86fdf25fa4.png)
解决方式:
参考:https://support.revealapp.com/hc/en-us/articles/360022479872-Reveal-debugger-commands-are-not-recognized-by-the-debugger
在 ~/.lldbinit-Xcode
文件里增加一行
command source ~/.lldbinit
![](https://img.haomeiwen.com/i1605558/0dd2e9a265b6e50f.png)
退出Reveal和Xcode,重新运行,生效
![](https://img.haomeiwen.com/i1605558/da28a1bd89bb2bbc.png)
网友评论