Python script in lldb

Source: Internet
Author: User
The last time I talked about how to view the current view and parameters, remember a string '* (Int *) ($ ESP + 4 )'It's really uncomfortable. You can use the lldb script. I wrote a script (download) to create a recursive query, because it is not Source code Debugging, you can't do it directly. It takes more time, and now it's unavailable. For more information about the script, see lldb Python reference using scripting and python to debug in lldb. Code : The http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/interface/ creates a. lldbinit in the current user directory, and then adds a sentence: Command Script import xxxx/showviews. py In the future, open xcode and use the next breakpoint as follows. If you have source code debugging, you can refer to the implementation of printvl. Showrec-> show recursivedescription showdes-> show description showparameters-> show the first few parameters printvl-> show the variable value followed by the variable name, not the register or address, so the source code is required. I think it's worth mentioning. Refer:  GDB tips-execute specific functions in the code during debugging (not supported by lldb) DebuggingProgramOutput function call information without interrupting the program.

Introduction to GDB

List of software used in development

 Simplify work with scripts

Programmers must learn to be lazy.---Correct use of automation technology

How to use search techniques to become an efficient programmer

Reprinted please indicate the source: http://blog.csdn.net/horkychen

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.