iOS - Application Debugging

We may make errors while creating an program, which can cause to different types of errors. To be able to fix these errors or insects, we need to debug the program.

Selecting a Debugger

Xcode has two debuggers namely, GDB and LLDB debuggers. GDB is chosen by standard. LLDB is a debugger that is a aspect of the LLVM open-source compiler venture. You can modify the debugger by "edit effective schemes" choice.

How to Find Coding Errors?

To identify coding-related errors, you need to develop your program which will gather the rule. In situation the rule contains errors, the compiler will show all the information, errors, and alerts with their possible factors.

You can basically click Item and then Evaluate to discover possible problems in an program.

Set Breakpoints

Breakpoints help us to know the different declares of our program things, which help us determining many faults such as sensible problems. We just need to basically click over the range variety to make a breakpoint. To eliminate a breakpoint, just basically click and move it out. The following screen shot reveals how to set a breakpoint:


When we run the program and choose the playVideo key, the program will stop at the range variety where we had set the breakpoint. It allows us plenty of a chance to evaluate the condition of the program. When the breakpoint is activated, we will get an outcome as proven below.


You can quickly recognize which line has activated the breakpoint. In the end, you can see things like self, emailer and so on, which keep the of the corresponding things and we can increase some of these things, and see what is the condition of each of these things.

To proceed the program we will choose the proceed key (left most button), in the debug place proven below. The other choices consist of phase in, phase out and phase over.

Exception breakpoint


We also have exemption breakpoints that induce an program to quit at the place where the exemption happens. We can place exemption breakpoints by choosing the + key after choosing the debug gps. You will get the following screen.


Then we need to select Add Exception Breakpoint, which will display the following window.


You can collect more information on debugging and other Xcode features from Xcode 4 user guide

1 comments :

Write comments
veera
AUTHOR
4 September 2020 at 04:43 delete

Too good article,keep sharing more ios article topics with us.

thank you..

ios online course

Reply
avatar