Xcode has a built-in debugger called LLDB. How to change a variable’s state while debugging an iOS application Docs WWDC24: Run, Break, Inspect: Explore effective debugging in LLDB | Apple - YouTube See also Debugging in Xcode Debugging in Swift LLDB