Browse Questions
- A lazy property is only computed the first time it is accessed.
- To create a custom Xcode File Template from scratch, create a .xctemplate directory inside ~/Library/Developer/Xcode/Templates/File Templates/<Category>/, add a TemplateInfo.plist declaring the…
- LLDB is the debugger built into Xcode.
- TCA is an open-source architecture library by Point-Free.
Answer: LLDB is the debugger built into Xcode. When paused at a breakpoint, you can type commands in the console to inspect and modify the running app.
Most useful commands:
# Print object description
po viewModel
po viewModel.items.count
# Print raw value
p frame.size.width
# Modify a value while paused
expr isLoading = true
expr (void)[self.tableView reloadData]
# Print backtrace (call stack)
bt
# Move up/down the call stack
up
down
# List all local variables
frame variable
# Continue execution
c
# Step over next line
n
# Step into function call
s
# Step out of current function
finish
# Set a breakpoint from console
breakpoint set --name viewDidLoad
br s -n "URLSession"