iOS lldb debugging common commands

Source: Internet
Author: User

Lldb is the debugger under LLVM. Xcode starts with the 4.0 compiler instead of LLVM, and the corresponding debugger changes from GDB to Lldb.

1. P For output base type

2. po for Output objective-c object

3. expr can execute the specified expression dynamically in the debug and print the result. Commonly used to modify the value of a variable during debugging

4. Call invocationcall [self.view setBackgroundColor:[UIColor redColor]]

5. bt print Call stack, plus all to print all thread stacks

6. The Image command can be used for addressing with multiple combinations of commands. A more practical use is to find the code location corresponding to the stack address.

  image lookup --address 0x0000000100004af8

iOS lldb debugging common commands

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.