LLDB
LLDB is a high-performance command-line debugger. It is available in Xcode. The easiest way to start it is to set a breakpoint and run the application. In the Xcode debug area view, you will find a console in which you can execute LLDB commands. Because we made an iOS app, we will set a breakpoint in the AppDelegate's didFinishLaunchingWithOptions
method.
To print the content of a variable, we can use the p
LLDB command. Just run p
with the variable name, for example, p name
, as shown here:
LLDB is a very powerful debugger. You can read more about the LLDB debugger at www.objc.io/issues/19-debugging/lldb-debugging/ and https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/gdb_to_lldb_transition_guide.