iOS 调试-Chisel-LLDB命令插件

Chisel 调试工具,Facebook开源的一款lldb调试工具-->GitHub

安装Chisel

1.安装homebrew:
需要通过homebrew 来安装
终端输入:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
// 期间需要输入密码

(安装目录在 cd /usr/local/Cellar/ 下)

2.安装chisel

:~ $ brew update
:~ $ brew install chisel

安装完成后提示:

==> Downloading https://github.com/facebook/chisel/archive/1.3.0.tar.gz
==> Downloading from https://codeload.github.com/facebook/chisel/tar.gz/1.3.0
######################################################################## 100.0%
==> Caveats
Add the following line to ~/.lldbinit to load chisel when Xcode launches:
  command script import /usr/local/opt/chisel/libexec/fblldb.py
==> Summary
  /usr/local/Cellar/chisel/1.3.0: 21 files, 136K, built in 28 seconds

按照安装提示:
*Add the following line to ~/.lldbinit to load chisel when Xcode launches:
command script import /usr/local/opt/chisel/libexec/fblldb.py

在~/.lldbinit 文件中添加一行命令,如果没有lldbinit文件则在该目录( ~/)下新建一个''.lldbinit''文件并在该文件中增加上述内容

:~ $ touch .lldbinit
:~ $ vi .lldbinit
/*
#.lldbinit 文件
 command script import /usr/local/opt/chisel/libexec/fblldb.py
*/

3.重启Xcode,下断点,OK

4.chisel的具体使用在此就不介绍了

参考:
http://www.jianshu.com/p/b2371dd4443b
http://blog.cnbluebox.com/blog/2015/03/05/chisel/

你可能感兴趣的:(iOS 调试-Chisel-LLDB命令插件)