IPhoneDevelopment skillsURL SchemeStartProcessThis document describes the debugging tutorial.URL SchemeStartProcessLet's just look at the details.
Some applications need to passURL schemeBut Xcode can only debug the program started by Xcode for the first time. Is there a way to debug the program started by URL scheme?
This section describes how to connect a started program for debugging.
First, append the following code to applicationDidFinishLaunching:
Here, we simply let the program enter an infinite loop. Then, start the program on the device. At this time, there is only a black screen, and then connect the device with Xcode.
Select the program "ProcessAtach" and "execute> connection process> ProcessAtach 」. Click "pause" in the debugger to execute the program. If you do not stop the program for a long time, the system stops the program, so pay attention to the pause time.) Click zoom in)
The interrupted point is the place where the infinite loop is just now, and then it can be replaced with a breakpoint. Click to zoom in)
Then, change the value of the stop parameter from YES to NO, and click Continue to debug the program normally.
Summary:IPhoneDevelopment skillsURL SchemeStartProcessThe content of the debugging tutorial is complete. I hope this article will help you!