1. Exception Breakpoint: When the code has a problem causing an exception to be thrown, the debugger pauses the execution of the application and stops at the row that throws the exception.
We just need to click: Add Exception Breakpoint, no other action required
When creating a new project, create an exception breakpoint first
2. Conditional breakpoints: That is, we usually directly to the code interface directly click on the formation of breakpoints, for these breakpoints, we can set some conditions
For example: code, I added a breakpoint, and then we go to the left of the Code navigation panel, find the breakpoint we added, and then "right click" Select Edit Breakpoint, you can set a breakpoint (condition: Fill in the breakpoint condition, only meet this condition, will trigger a breakpoint.) Action: What to do when a breakpoint is triggered).
3. Observation point: Pauses the execution of a program when the value saved in a variable is changed.
First, we need to start the program, then open the Observation window, click on a variable, for example, Ordertime, now we want to monitor its properties when the change, we need to find this property, and then "right click", click on Watch "_odertime" to complete the creation of the observation point, Later, when the value of this property changes, our program automatically pauses here.
IOS Break Point debugging