(go) Enhance LLDB's UI debugging capabilities through Chisel

Source: Internet
Author: User
Tags echo command

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
    1. 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
    1. 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
    1. 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
    1. 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
    1. sudo brew update


4: No brew installed?

http://blog.csdn.net/chenyi8888/article/details/7345113

(go) Enhance LLDB's UI debugging capabilities through Chisel

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.