Chisel 調試工具,F(xiàn)acebook開源的一款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 文件中添加一行命令能颁,如果沒有l(wèi)ldbinit文件則在該目錄( ~/)下新建一個''.lldbinit''文件并在該文件中增加上述內容
:~ $ touch .lldbinit
:~ $ vi .lldbinit
/*
#.lldbinit 文件
command script import /usr/local/opt/chisel/libexec/fblldb.py
*/
3.重啟Xcode巫员,下斷點,OK
4.chisel的具體使用在此就不介紹了
參考:
http://www.reibang.com/p/b2371dd4443b
http://blog.cnbluebox.com/blog/2015/03/05/chisel/