Debugging and Reflection
Fortify your code with runtime checks, and examine your values’ runtime representation.
Topics
Printing and Dumping
print(_:separator:terminator:)print(_:separator:terminator:to:)debugPrint(_:separator:terminator:)debugPrint(_:separator:terminator:to:)dump(_:name:indent:maxDepth:maxItems:)dump(_:to:name:indent:maxDepth:maxItems:)
Testing
assert(_:_:file:line:)assertionFailure(_:file:line:)precondition(_:_:file:line:)preconditionFailure(_:file:line:)