April 2020
Beginner
316 pages
8h 20m
English
To the right of the Watch Window is the console. When your app is running, Xcode will automatically output any data that's been pushed to the console here. However, when you hit a breakpoint, you can input commands to check the value of a variable, condition, or even a function for yourself. Let's take a look at how we would do this:

With us still held at our breakpoint, you'll notice that we've typed in po recipes ('po' stands for 'print object'). the print object basically prints the result value of the object or function straight to the console window.
Another option would be to use dump(). Working in a ...
Read now
Unlock full access