Go: Xcode Print stack information

Source: Internet
Author: User

* share in 14-11-26 19:15:36 Chrome 39.0.2171.71 Mac OS X 10.10.1
If you just look at the call stack, you can use the LLDB function.
When you hit a breakpoint in your code and then run to the breakpoint, you go into lldb mode and a small window appears underneath XCode.
LLDB support a lot of commands, you can enter in the debugging window to help at the cursor, you can also help XXX (Sub-command collection)

For example, the following:

<ignore_js_op>

The thread Info command can view information about the current breakpoint thread, and if you add a numeric parameter that represents the information for viewing a thread number

Thread BackTrace can view the call stack.

As for the data information on the current run stack, you can open the output of the Debug window, mark the portion of the red circle, and the ban La blank window on the left will display the data information.
<ignore_js_op>

More advanced usage is using the Instruments provided by XCode, which is very complex and very useful, and can look at Apple's official documentation.
<ignore_js_op>


Go: Xcode print stack information

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.