In Xcode, how does one set breakpoint debugging in the APP to be started? xcodeapp

Source: Internet
Author: User

In Xcode, how does one set breakpoint debugging in the APP to be started? xcodeapp

In an actual App, we may encounter a situation where we design an APP that passively starts loading when the outside world sends a message or meets certain conditions, initialization is performed based on some parameters passed in from the outside world.

Because the program is started by other programs, we cannot compile and run the program directly in XCode and set breakpoint debugging. Fortunately, XCode provides the debugging function attached to the process, and can wait for the process to run by the process name before the process starts, and when the process is actually loaded, go to breakpoint debugging. The specific method is as follows:

1. Select Debug-> Attach to Process-> By Process Identifier or Name in XCode to be debugged...

2. In the PID or Process Name dialog box that appears, enter the Process Name (usually your project Name) and click Attach.


After the configuration is complete, you can start other processes on the Virtual Machine (rather than the process to be debugged). After the process is started, XCode automatically enters the debugging status.

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.