reveal-Loading leverages global breakpoints

Source: Internet
Author: User

Search on the Internet how to load reveal, many are using reveal.framework to drag into the project inside, this is not convenient, every time to change the new project to do so, here to explain a use of the configuration of a global breakpoint to trigger, change works also do not have to reset, convenient many.

Here are the detailed configuration steps:

1. Open an iOS project in Xcode and select the menu item view→navigators→show Breakpoint Navigator .

2. Under the navigation panel on the left, click "+" and select the "Add Symbolic Breakpoint" menu item as shown:



3. Fill in the "Uiapplicationmain" in the symbol field of the popup panel, such as:



4. Click the Add Action button, such as:



5. Copy the following command paste to the edit box shown in:

expr (Class) nsclassfromstring (@" ibarevealloader ") = = nil? (void *) Dlopen ("/applications/reveal.app/contents/sharedsupport/ios-libraries/libreveal.dylib", 0x2): ((void*) 0) 

As shown in the following:



in the above command, there is a path string

/applications/reveal.app/contents/sharedsupport/ios-libraries/libreveal.dylib

Make sure that the file referred to by this string exists on disk (normally, if you install reveal to the application directory, there is no problem here).

6. Tick the automatically continue after evaluating actions option. If you do not tick, each time you run the project will stop breakpoints, check the program to run directly .



7. After completing the above steps, right-click on the newly created breakpoint and pop up the following menu and select as shown:




Now, all the configuration steps are complete. After any project analysis, you can start reveal and analyze directly.

Now start a project debugging, the Xcode console will output the following log, indicating that the configuration is correct, reveal has been able to start using normally, as shown in:


Next start reveal, such as Operation:


Let's try reveal's tough:




In the above demo demo, it is enough to illustrate the power and convenience of reveal, a variety of hierarchical structure at a glance, especially for those irregular UI implementation, can be easily analyzed.

reveal-Loading leverages global breakpoints

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.