Original address: http://blog.csdn.net/ysy441088327/article/details/20943995
Introduction:
Chisel is a small plug-in that strengthens the ability to debug lldb. The main feature is that the interface is developed and debugged in the console to see the elements and conditions of the interfaces as intuitively as possible. For us to comb the view, controller, and class relationship levels.
As well as some temporary interface debugging changes for quick response. Its author comes from the Facebook team. Thanks to open source, let's watch and see what this stuff is all about.
Before you begin:
There should be some understanding of LLDB's common commands before using chisel, and if you are still in the stage of using the console to see the output logs, it is recommended to look at the <lldb debug command > This article
Installation:
Chisel's open source address is as follows:
Https://github.com/facebook/chisel
The main installation method is two steps:
Install chisel through brew, start the terminal, enter the following command:
[CSharp]View Plaincopy
- Brew Install Chisel
If it goes well, the terminal returns the content as shown:
We can see from the feedback results that we have successfully installed the chisel.
But it's still not working, and we need to correlate chisel with Xcode's lldb. Note the description under the Caveats column in the diagram:
The meaning of English is that we need to inject a script into the . Lldbinit file. The contents of this script are:
Command Script import/usr ...
The goal is to be able to load our pre-programmed scripts when Xcode is running.
Well, we just need to execute the following command at the terminal:
[CSharp]View Plaincopy
- echo Command script import/usr/local/cellar/chisel/1.0.0/libexec/fblldb.py >> ~/.lldbinit
To do this, install and restart Xcode.
But in the installation process bloggers I also encountered a lot of problems:
1: Please run the installation command as an administrator
[CSharp]View Plaincopy
- sudo brew Install chisel
2: You may not have the command line Tools installed for Xcode, run the following command at the terminal to install:
[CSharp]View Plaincopy
- Xcode-select--install
3: Before installing with brew, you need to update your brew to make sure there is a chisel, otherwise it will not be installed. Note also to be updated as an administrator (similar to cocoapods)
[CSharp]View Plaincopy
- sudo brew update
4: No brew installed?
http://blog.csdn.net/chenyi8888/article/details/7345113
(go) Enhance LLDB's UI debugging capabilities through Chisel