How to set breakpoints debugging in an app that's about to start in Xcode

Source: Internet
Author: User

In a real-world app, we might encounter a situation where we design an app that can send a message or satisfy a certain condition, passively start the load, and initialize it based on some parameters that are passed in.

This is because the program is started by another program, so we are not able to compile the run program and set breakpoints debugging directly in Xcode. Fortunately, Xcode provides debugging capabilities that are attached to the process, and can wait for the process to run through the process name before the process starts, and enter the breakpoint debugging when the process is actually loaded. Here's how:

1, in the Xcode to be debugged select Debug->attach to Process->by Process Identifier or Name ...

2. Enter the process name (usually your project name) in the PID or process name of the dialog box that pops up, and click Attach


After the configuration is complete, you can start other processes on the virtual machine (not the process to be debugged), and when the debugging process is started, Xcode will automatically enter the debug state.

How to set breakpoints debugging in an app that's about to start in Xcode

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.