Debug Your iOS App
Let's say your banking application has an issue with retrieving the correct account balance value when the user logs out of the application and then back in.
Head over to Xcode and set the breakpoints in the code where the balance is evaluated and retrieved.
Screenshot displays two breakpoints, one of the breakpoints evaluates the balance and the other for the actual code that evaluates and retrieves the balance.
Running in Debug Mode
In Xcode, click on Run. As you interact with the app, the application hangs wherever you set the breakpoints, in this case the login action and the balance retrieval action.
In the debugger console, you see the status of the conditional boolean and the value of balance at the moment of its retrieval.
You are then able to inquire as to why the balance was incorrectly evaluated.
Balance Retrieval Breakpoint
Make the necessary changes in your code and run the Debugger again to verify that the changes you have applied fixed the issue you attempting to debug.