美文网首页
chisel 凿子(LLDB)使用

chisel 凿子(LLDB)使用

作者: 有缘人2830 | 来源:发表于2018-03-17 14:33 被阅读76次

1.安装Homebrew
或者终端直接输入:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
注意:Xcode可能会提示更新Command Line Tools,请前往 App Store更新Command Line Tools。

image.png
表示安装好 Homebrew
2.brew update
image.png
3.brew install chisel
image.png
4.caveats会有警告,所以我们需要在.lldbinit中添加一个文件,首先 ls -la (-前面要有一个空格)查找有没有这个文件。
如果不存在,就 touch .lldbinit 创建,然后 open .lldbinit 加入下面这句话。
command script import /usr/local/opt/chisel/libexec/fblldb.py
image.png
image.png
5.重启Xcode

6.help 可以查看更多语法。


image.png

试一下,这里就可以直接用lldb输出中文了。


image.png

其他:?
打印UIView的层级关系
使用LLDB: po [self.view recursiveDescription]

相关文章

网友评论

      本文标题:chisel 凿子(LLDB)使用

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